github.com/Psiphon-Labs/tls-tris@v0.0.0-20230824155421-58bf6d336a9a/_dev/go.sh (about)

     1  #!/usr/bin/env bash
     2  # 
     3  # THIS FILE IS ONLY USED BY _dev/bogo. It will be removed in future
     4  set -e
     5  
     6  BASEDIR=$(cd "$(dirname "$0")" && pwd)
     7  GOENV="$(go env GOHOSTOS)_$(go env GOHOSTARCH)"
     8  
     9  BUILD_DIR=${BASEDIR}/GOROOT make -f $BASEDIR/Makefile >&2
    10  
    11  export GOROOT="$BASEDIR/GOROOT/$GOENV"
    12  exec go "$@"