This repository was archived by the owner on Sep 9, 2020. It is now read-only.
File tree 7 files changed +23
-20
lines changed
cmd/dep/testdata/harness_tests/ensure
7 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 12
12
# # or in a dependency.
13
13
# ignored = ["github.com/user/project/badpkg"]
14
14
15
- # # Constraint define constraints on dependent projects. They are respected by
15
+ # # Constraints are rules for how directly imported projects
16
+ # # may be incorporated into the depgraph. They are respected by
16
17
# # dep whether coming from the Gopkg.toml of the current project or a dependency.
17
18
# [[constraint]]
18
19
# # Required: the root import path of the project being constrained.
27
28
# # Optional: an alternate location (URL or import path) for the project's source.
28
29
# source = "https://github.com/myfork/package.git"
29
30
30
- # # Overrides have the same structure as [[constraint]], but supercede all
31
+ # # Override have the same structure as [[constraint]], but supercede all
31
32
# # [[constraint]] declarations from all projects. Only the current project's
32
- # # [[overrides ]] are applied.
33
+ # # [[override ]] is applied.
33
34
# #
34
- # # Overrides are a sledgehammer. Use them only as a last resort.
35
- # [[overrides ]]
35
+ # # Override is a sledgehammer. Use them only as a last resort.
36
+ # [[override ]]
36
37
# # Required: the root import path of the project being constrained.
37
38
# name = "github.com/user/project"
38
39
#
Original file line number Diff line number Diff line change 29
29
30
30
# # Overrides have the same structure as [[constraint]], but supercede all
31
31
# # [[constraint]] declarations from all projects. Only the current project's
32
- # # [[overrides ]] are applied.
32
+ # # [[override ]] are applied.
33
33
# #
34
34
# # Overrides are a sledgehammer. Use them only as a last resort.
35
- # [[overrides ]]
35
+ # [[override ]]
36
36
# # Required: the root import path of the project being constrained.
37
37
# name = "github.com/user/project"
38
38
#
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ type Manifest struct {
25
25
26
26
type rawManifest struct {
27
27
Constraints []rawProject `toml:"constraint,omitempty"`
28
- Overrides []rawProject `toml:"overrides ,omitempty"`
28
+ Overrides []rawProject `toml:"override ,omitempty"`
29
29
Ignored []string `toml:"ignored,omitempty"`
30
30
Required []string `toml:"required,omitempty"`
31
31
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ignored = ["github.com/foo/bar"]
7
7
version = " ^v0.12.0"
8
8
source = " https://github.com/golang/dep/gps"
9
9
10
- [[overrides ]]
10
+ [[override ]]
11
11
name = " github.com/golang/dep/gps"
12
12
branch = " master"
13
13
revision = " d05d5aca9f895d19e9265839bffeadd74a2d2ecb"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ ignored = ["github.com/foo/bar"]
8
8
name = " github.com/golang/dep/gps"
9
9
version = " >=0.12.0, <1.0.0"
10
10
11
- [[overrides ]]
11
+ [[override ]]
12
12
branch = " master"
13
13
name = " github.com/golang/dep/gps"
14
14
source = " https://github.com/golang/dep/gps"
Original file line number Diff line number Diff line change 12
12
# # or in a dependency.
13
13
# ignored = ["github.com/user/project/badpkg"]
14
14
15
- # # Constraint define constraints on dependent projects. They are respected by
15
+ # # Constraints are rules for how directly imported projects
16
+ # # may be incorporated into the depgraph. They are respected by
16
17
# # dep whether coming from the Gopkg.toml of the current project or a dependency.
17
18
# [[constraint]]
18
19
# # Required: the root import path of the project being constrained.
27
28
# # Optional: an alternate location (URL or import path) for the project's source.
28
29
# source = "https://github.com/myfork/package.git"
29
30
30
- # # Overrides have the same structure as [[constraint]], but supercede all
31
+ # # Override have the same structure as [[constraint]], but supercede all
31
32
# # [[constraint]] declarations from all projects. Only the current project's
32
- # # [[overrides ]] are applied.
33
+ # # [[override ]] is applied.
33
34
# #
34
- # # Overrides are a sledgehammer. Use them only as a last resort.
35
- # [[overrides ]]
35
+ # # Override is a sledgehammer. Use them only as a last resort.
36
+ # [[override ]]
36
37
# # Required: the root import path of the project being constrained.
37
38
# name = "github.com/user/project"
38
39
#
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ const exampleTOML = `
36
36
## or in a dependency.
37
37
# ignored = ["github.com/user/project/badpkg"]
38
38
39
- ## Constraint define constraints on dependent projects. They are respected by
39
+ ## Constraints are rules for how directly imported projects
40
+ ## may be incorporated into the depgraph. They are respected by
40
41
## dep whether coming from the Gopkg.toml of the current project or a dependency.
41
42
# [[constraint]]
42
43
## Required: the root import path of the project being constrained.
@@ -51,12 +52,12 @@ const exampleTOML = `
51
52
## Optional: an alternate location (URL or import path) for the project's source.
52
53
# source = "https://github.com/myfork/package.git"
53
54
54
- ## Overrides have the same structure as [[constraint]], but supercede all
55
+ ## Override have the same structure as [[constraint]], but supercede all
55
56
## [[constraint]] declarations from all projects. Only the current project's
56
- ## [[overrides ]] are applied.
57
+ ## [[override ]] is applied.
57
58
##
58
- ## Overrides are a sledgehammer. Use them only as a last resort.
59
- # [[overrides ]]
59
+ ## Override is a sledgehammer. Use them only as a last resort.
60
+ # [[override ]]
60
61
## Required: the root import path of the project being constrained.
61
62
# name = "github.com/user/project"
62
63
#
You can’t perform that action at this time.
0 commit comments