X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f8743ac8fa1ed9dc8c7c4f7a23803ffe8721cfa6..2d8508738cc5ae65818f5e6a0ca4e0af15fb6b0c:/sdk/go/go.sh diff --git a/sdk/go/go.sh b/sdk/go/go.sh index 0203a1cc6f..5553567287 100755 --- a/sdk/go/go.sh +++ b/sdk/go/go.sh @@ -1,11 +1,16 @@ #! /bin/sh -rootdir=$(dirname $0) -GOPATH=$rootdir:$rootdir/../../sdk/go:$GOPATH +# Wraps the 'go' executable with some environment setup. Sets GOPATH, creates +# 'pkg' and 'bin' directories, automatically installs dependencies, then runs +# the underlying 'go' executable with any command line parameters provided to +# the script. + +rootdir=$(readlink -f $(dirname $0)) +GOPATH=$rootdir:$GOPATH export GOPATH -mkdir -p pkg -mkdir -p bin +mkdir -p $rootdir/pkg +mkdir -p $rootdir/bin go get gopkg.in/check.v1