Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.17 KB

File metadata and controls

57 lines (36 loc) · 1.17 KB

Dependency Management

Pipeline uses dep to vendor dependencies.

Install the latest version from the link above or by running:

$ make bin/dep # Installs dep to ./bin/dep

On MacOS you can install it using Homebrew:

$ brew install dep

Add a new dependency

If you write new features which imports a new library, you have to vendor it:

$ dep ensure -v -add github.com/Masterminds/cookoo/web

Add a forked dependency

Sometimes you have an unmerged PR, or a change which you don't even want to push upstream. In those cases you have a GH fork, and want use that instead of the origin.

Gopkg.toml:

[[constraint]]
  name = "github.com/qor/auth"
  branch = "master"
  source = "github.com/banzaicloud/auth"

Update existing dependency

If you are using a specific branch/tag like v1.2.0 in Gopkg.toml, just change it to the new version.

Perform an update:

$ dep ensure -v -update github.com/your/upgradable/package

Related issues

see GH issues: