setup_dep.sh 342 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. set -e
  3. # Install `dep` the current defacto dependency for Golang
  4. GOLANG_DEP_VERSION=0.5.0
  5. dep_url=https://github.com/golang/dep/releases/download/v$GOLANG_DEP_VERSION/dep-linux-amd64
  6. if [ -z $GOPATH ]; then
  7. echo '$GOPATH is not set, aborting'
  8. exit 1
  9. fi
  10. curl -L -o $GOPATH/bin/dep $dep_url
  11. chmod +x $GOPATH/bin/dep