5553567287388f8e83dbd4b3f5645156ea1b9920
[arvados.git] / sdk / go / go.sh
1 #! /bin/sh
2
3 # Wraps the 'go' executable with some environment setup.  Sets GOPATH, creates
4 # 'pkg' and 'bin' directories, automatically installs dependencies, then runs
5 # the underlying 'go' executable with any command line parameters provided to
6 # the script.
7
8 rootdir=$(readlink -f $(dirname $0))
9 GOPATH=$rootdir:$GOPATH
10 export GOPATH
11
12 mkdir -p $rootdir/pkg
13 mkdir -p $rootdir/bin
14
15 go get gopkg.in/check.v1
16
17 go $*