th5/_dev/go.sh
Filippo Valsorda 844036d474 tris: remove github.com/cloudflare/go
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.
2018-02-08 15:44:25 +01:00

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 "$@"