lib/Tools/go
author wenzelm
Mon, 27 Oct 2025 12:37:31 +0100
changeset 83416 c7849fa2ece0
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
more direct sledgehammer "locate" operation via official Query_Operation interface; proper editor.send_dispatcher for "cancel" and "locate";

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