lib/Tools/gofmt
author wenzelm
Fri, 17 Jan 2025 23:10:39 +0100
changeset 81869 24ef42cab7d6
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
proper condition for strict "test_code check in OCaml" and "test_code check in GHC";

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: invoke gofmt 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/gofmt" "$@"
fi