Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas
Created May 22, 2018 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cibernomadas/6fe1b0254c1974532a7889333f893b0f to your computer and use it in GitHub Desktop.
Save Cibernomadas/6fe1b0254c1974532a7889333f893b0f to your computer and use it in GitHub Desktop.
go get -d -u github.com/golang/dep
cd $(go env GOPATH)/src/github.com/golang/dep
DEP_LATEST=$(git describe --abbrev=0 --tags)
git checkout $DEP_LATEST
go install -ldflags="-X main.version=$DEP_LATEST" ./cmd/dep
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment