lib/Tools/go
author wenzelm
Sat, 02 Nov 2024 20:14:44 +0100
changeset 81319 a0b25f94c74a
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
clarified signature;

#!/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