Using dep as the dependancy management tool

Install from the repo:
https://github.com/golang/dep

https://hackernoon.com/using-go-dep-as-a-project-maintainer-641d1f3006d7
https://dev.to/ykyuen/manage-go-dependencies-using-dep-16p9


Getting started:

dep init

Update dependencies:

dep ensure -update

Add dependencies for the first time:

dep ensure -add


In short:
 dep init                               set up a new project
  dep ensure                             install the project's dependencies
  dep ensure -update                     update the locked versions of all dependencies
  dep ensure -add github.com/pkg/errors  add a dependency to the project

Comments

Popular Posts