|
1 | 1 |
|
2 |
| -# Example: |
| 2 | +## Dependencies define constraints on how dependent projects should be |
| 3 | +## incorporated into Gopkg.lock. They are respected by dep whether |
| 4 | +## this project is the current project, or if it's a dependency. |
3 | 5 | # [[dependencies]]
|
| 6 | +## Required: the root import path of the project being constrained |
| 7 | +# name = "github.com/user/project" |
| 8 | +## Optional: an alternate location (URL or import path) for the project's source |
4 | 9 | # source = "https://github.com/myfork/package.git"
|
| 10 | +## Optional, but recommended: the version constraint to enforce for the project. |
| 11 | +## Only one of "branch", "version" or "revision" can be specified. |
| 12 | +# version = "1.0.0" |
5 | 13 | # branch = "master"
|
6 |
| -# name = "github.com/vendor/package" |
7 |
| -# Note: revision will depend on your repository type, i.e git, svc, bzr etc... |
| 14 | +## Note: revision will depend on your repository type; git and hg have SHA1s, |
| 15 | +## bzr a 3-part id, svn a revision number. |
8 | 16 | # revision = "abc123"
|
| 17 | + |
| 18 | +## Overrides have the same structure as [[dependencies]], but supercede all |
| 19 | +## [[dependencies]] declarations from all projects. However, only the current |
| 20 | +## project's overrides will apply. |
| 21 | +## |
| 22 | +## Overrides are a sledgehammer, and should be used only as a last resort. |
| 23 | +# [[overrides]] |
| 24 | +## Required: the root import path of the project being constrained |
| 25 | +# name = "github.com/user/project" |
| 26 | +## Optional: an alternate location (URL or import path) for the project's source |
| 27 | +# source = "https://github.com/myfork/package.git" |
| 28 | +## Optional, but recommended: the version constraint to enforce for the project. |
| 29 | +## Only one of "branch", "version" or "revision" can be specified. |
9 | 30 | # version = "1.0.0"
|
| 31 | +# branch = "master" |
| 32 | +## Note: revision will depend on your repository type; git and hg have SHA1s, |
| 33 | +## bzr a 3-part id, svn a revision number. |
| 34 | +# revision = "abc123" |
| 35 | + |
| 36 | +## "required" lists a set of packages (not projects) that must be included in |
| 37 | +## Gopkg.lock. This has the same effect as directly importing a package, but |
| 38 | +## can be used to require "main" packages. |
| 39 | +# required = ["github.com/user/thing/cmd/thing"] |
| 40 | + |
| 41 | +## "ignored" lists a set of packages (not projects) that are ignored when |
| 42 | +## dep statically analyzes source code. Ignored packages can be in this project, |
| 43 | +## or in a dependency. |
| 44 | +# ignored = ["github.com/user/project/badpkg"] |
| 45 | + |
0 commit comments