lib/Tools/go
author wenzelm
Fri, 13 Jun 2025 15:18:16 +0200
changeset 82699 a3e7732b0393
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
more robust GUI setup via Java, instead of shell script; support for automatic / approximative GDK_SCALE for Linux;

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