build.sh 381 B

123456789101112
  1. #!/bin/bash
  2. set -e
  3. set -x
  4. if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then
  5. mkdir -p /tmp/build-golang/src/github.com/json-iterator
  6. ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go
  7. fi
  8. export GOPATH=/tmp/build-golang
  9. go get -u github.com/golang/dep/cmd/dep
  10. cd /tmp/build-golang/src/github.com/json-iterator/go
  11. exec $GOPATH/bin/dep ensure -update