export GO111MODULE=on # otherwise, a checkout of this repo in GOPATH will disable modules on Go 1.12 and earlier source <(go env) # build tools for the host platform export GOOS="$GOHOSTOS" export GOARCH="$GOHOSTARCH" # TODO GOARM=$GOHOSTARM?