844036d474
Over time the amount of custom Go patches reduced, and tris got less tangled to the underlying Go. Finally sever the link. This allows more flexibility in what base Go is used (the system one), doesn't require coordinating two repositories, and simplifies the black magic considerably. Make sure to use tris with Go 1.9.X.
11 lines
207 B
Bash
Executable File
11 lines
207 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
BASEDIR=$(cd "$(dirname "$0")" && pwd)
|
|
GOENV="$(go env GOHOSTOS)_$(go env GOHOSTARCH)"
|
|
|
|
make --quiet -C "$BASEDIR" GOROOT >&2
|
|
|
|
export GOROOT="$BASEDIR/GOROOT/$GOENV"
|
|
exec go "$@"
|