lib/Tools/go
author wenzelm
Tue, 26 Mar 2024 20:39:06 +0100
changeset 80011 b082476a8036
child 80013 f1686f71dffc
permissions -rwxr-xr-x
dynamic setup of Go component, similar to Dotnet;

#!/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="$ISABELLE_GOROOT"
  exec "$ISABELLE_GOEXE/go" "$@"
fi