lib/Tools/go
author wenzelm
Sun, 27 Oct 2024 22:35:02 +0100
changeset 81281 c1e418161ace
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
tuned proofs;

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