lib/Tools/go
author Thomas Lindae <thomas.lindae@in.tum.de>
Thu, 30 May 2024 02:45:01 +0200
changeset 81035 56594fac1dab
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
vscode: added dynamic and state output set margin messages to vscode extension;

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