Fix repositories.get_all_permissions, add tests. closes #3546
[arvados.git] / services / keep / 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:$rootdir/../../sdk/go:$GOPATH
10 export GOPATH
11
12 mkdir -p $rootdir/pkg
13 mkdir -p $rootdir/bin
14
15 go get github.com/gorilla/mux
16
17 go $*