Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 946 Bytes

testing_and_dependencies.md

File metadata and controls

13 lines (9 loc) · 946 Bytes

Dependency management

We use Dep to manage golang dependencies.. In order to add a new package dependency to the project, you can perform dep ensure -add <PACKAGE> or edit the Gopkg.toml file and append the package along with the version you want to use as a new [[constraint]].

Updating dependencies

The Makefile contains a rule called revendor which performs a dep ensure -update and a dep prune command. This updates all the dependencies to its latest versions (respecting the constraints specified in the Gopkg.toml file). The command also installs the packages which do not yet exist in the vendor folder but are specified in the Gopkg.toml (in case you have added new ones).

$ make revendor

The dependencies are installed into the vendor folder which should be added to the VCS.

⚠️ Make sure you test the code after you have updated the dependencies!