|
| 1 | + |
| 2 | +## Gopkg.toml example (these lines may be deleted) |
| 3 | + |
| 4 | +## "metadata" defines metadata about the project that could be used by other independent |
| 5 | +## systems. The metadata defined here will be ignored by dep. |
| 6 | +# [metadata] |
| 7 | +# key1 = "value that convey data to other systems" |
| 8 | +# system1-data = "value that is used by a system" |
| 9 | +# system2-data = "value that is used by another system" |
| 10 | + |
| 11 | +## "required" lists a set of packages (not projects) that must be included in |
| 12 | +## Gopkg.lock. This list is merged with the set of packages imported by the current |
| 13 | +## project. Use it when your project needs a package it doesn't explicitly import - |
| 14 | +## including "main" packages. |
| 15 | +# required = ["github.com/user/thing/cmd/thing"] |
| 16 | + |
| 17 | +## "ignored" lists a set of packages (not projects) that are ignored when |
| 18 | +## dep statically analyzes source code. Ignored packages can be in this project, |
| 19 | +## or in a dependency. |
| 20 | +# ignored = ["github.com/user/project/badpkg"] |
| 21 | + |
| 22 | +## Constraints are rules for how directly imported projects |
| 23 | +## may be incorporated into the depgraph. They are respected by |
| 24 | +## dep whether coming from the Gopkg.toml of the current project or a dependency. |
| 25 | +# [[constraint]] |
| 26 | +## Required: the root import path of the project being constrained. |
| 27 | +# name = "github.com/user/project" |
| 28 | +# |
| 29 | +## Recommended: the version constraint to enforce for the project. |
| 30 | +## Only one of "branch", "version" or "revision" can be specified. |
| 31 | +# version = "1.0.0" |
| 32 | +# branch = "master" |
| 33 | +# revision = "abc123" |
| 34 | +# |
| 35 | +## Optional: an alternate location (URL or import path) for the project's source. |
| 36 | +# source = "https://github.com/myfork/package.git" |
| 37 | +# |
| 38 | +## "metadata" defines metadata about the dependency or override that could be used |
| 39 | +## by other independent systems. The metadata defined here will be ignored by dep. |
| 40 | +# [metadata] |
| 41 | +# key1 = "value that convey data to other systems" |
| 42 | +# system1-data = "value that is used by a system" |
| 43 | +# system2-data = "value that is used by another system" |
| 44 | + |
| 45 | +## Overrides have the same structure as [[constraint]], but supersede all |
| 46 | +## [[constraint]] declarations from all projects. Only [[override]] from |
| 47 | +## the current project's are applied. |
| 48 | +## |
| 49 | +## Overrides are a sledgehammer. Use them only as a last resort. |
| 50 | +# [[override]] |
| 51 | +## Required: the root import path of the project being constrained. |
| 52 | +# name = "github.com/user/project" |
| 53 | +# |
| 54 | +## Optional: specifying a version constraint override will cause all other |
| 55 | +## constraints on this project to be ignored; only the overridden constraint |
| 56 | +## need be satisfied. |
| 57 | +## Again, only one of "branch", "version" or "revision" can be specified. |
| 58 | +# version = "1.0.0" |
| 59 | +# branch = "master" |
| 60 | +# revision = "abc123" |
| 61 | +# |
| 62 | +## Optional: specifying an alternate source location as an override will |
| 63 | +## enforce that the alternate location is used for that project, regardless of |
| 64 | +## what source location any dependent projects specify. |
| 65 | +# source = "https://github.com/myfork/package.git" |
| 66 | + |
| 67 | +# required = [ |
| 68 | +# 'github.com/golang/dep/cmd/dep', |
| 69 | +# 'github.com/golang/mock/gomock', |
| 70 | +# 'github.com/golang/mock/mockgen', |
| 71 | +# ] |
| 72 | +# |
| 73 | +# |
| 74 | +# [metadata] |
| 75 | +# # install_required = true |
| 76 | +# install = [ |
| 77 | +# 'github.com/golang/dep/cmd/dep', |
| 78 | +# 'github.com/golang/mock/...', |
| 79 | +# ] |
| 80 | + |
| 81 | +required = [ |
| 82 | + 'github.com/jteeuwen/go-bindata/go-bindata' |
| 83 | +] |
| 84 | + |
| 85 | +[metadata] |
| 86 | +install_required = true |
| 87 | + |
| 88 | +[[constraint]] |
| 89 | + branch = "master" |
| 90 | + name = "github.com/golang/dep" |
| 91 | + |
| 92 | +[[constraint]] |
| 93 | + branch = "master" |
| 94 | + name = "github.com/BurntSushi/toml" |
| 95 | + |
| 96 | +[[constraint]] |
| 97 | + branch = "master" |
| 98 | + name = "github.com/inconshreveable/mousetrap" |
| 99 | + |
| 100 | +[[constraint]] |
| 101 | + version = "^0.8.0" |
| 102 | + name = "github.com/pkg/errors" |
| 103 | + |
| 104 | +[[constraint]] |
| 105 | + branch = "master" |
| 106 | + name = "github.com/spf13/cobra" |
0 commit comments