Merge branch 'master' into 2919-provenance-graph-cutoff
[arvados.git] / sdk / go / go.sh
index 0203a1cc6fad53b5810b68292489985284fa8c60..5553567287388f8e83dbd4b3f5645156ea1b9920 100755 (executable)
@@ -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