lib/Tools/go
author haftmann
Mon, 09 Jun 2025 22:14:38 +0200
changeset 82691 b69e4da2604b
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
more qualified auxiliary operations

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