|
1 | 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" |
| 2 | +# Gopkg.toml example |
28 | 3 | # |
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" |
| 4 | +# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md |
| 5 | +# for detailed Gopkg.toml documentation. |
34 | 6 | # |
35 | | -## Optional: an alternate location (URL or import path) for the project's source. |
36 | | -# source = "https://github.com/myfork/package.git" |
| 7 | +# required = ["github.com/user/thing/cmd/thing"] |
| 8 | +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] |
37 | 9 | # |
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" |
| 10 | +# [[constraint]] |
| 11 | +# name = "github.com/user/project" |
| 12 | +# version = "1.0.0" |
53 | 13 | # |
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" |
| 14 | +# [[constraint]] |
| 15 | +# name = "github.com/user/project2" |
| 16 | +# branch = "dev" |
| 17 | +# source = "github.com/myfork/project2" |
61 | 18 | # |
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 | | - |
| 19 | +# [[override]] |
| 20 | +# name = "github.com/x/y" |
| 21 | +# version = "2.4.0" |
67 | 22 |
|
68 | 23 |
|
69 | 24 | [[constraint]] |
70 | 25 | name = "github.com/dgrijalva/jwt-go" |
71 | | - version = "3.0.0" |
| 26 | + version = "3.2.0" |
72 | 27 |
|
73 | 28 | [[constraint]] |
74 | 29 | name = "github.com/labstack/gommon" |
75 | | - version = "0.2.1" |
| 30 | + version = "0.2.4" |
76 | 31 |
|
77 | 32 | [[constraint]] |
78 | 33 | name = "github.com/stretchr/testify" |
79 | | - version = "1.1.4" |
| 34 | + version = "1.2.1" |
80 | 35 |
|
81 | 36 | [[constraint]] |
82 | 37 | branch = "master" |
|
0 commit comments