lib/Tools/go
author nipkow
Fri, 07 Feb 2025 21:27:11 +0100
changeset 82102 15261d78d7b5
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
updated syntax

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: invoke go within the Isabelle environment

if [ -z "$ISABELLE_GOEXE" ]; then
  echo "Missing Go installation: need to run \"isabelle go_setup\" first" >&2
  exit 2
else
  export GOROOT="$(platform_path "$ISABELLE_GOROOT")"
  exec "$ISABELLE_GOEXE/go" "$@"
fi