lib/Tools/go
author wenzelm
Sat, 15 Feb 2025 19:20:28 +0100
changeset 82185 cd96b972d5d3
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
more robust startup, notably on Ubuntu 24.04 with its strict policies on the "chrome-sandbox" executable;

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