Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 065c23f

Browse files
committed
rename [[overrides]] to [[override]]
1 parent bb8a327 commit 065c23f

File tree

7 files changed

+23
-20
lines changed

7 files changed

+23
-20
lines changed

cmd/dep/testdata/harness_tests/ensure/empty/case1/final/Gopkg.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
## or in a dependency.
1313
# ignored = ["github.com/user/project/badpkg"]
1414

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
1617
## dep whether coming from the Gopkg.toml of the current project or a dependency.
1718
# [[constraint]]
1819
## Required: the root import path of the project being constrained.
@@ -27,12 +28,12 @@
2728
## Optional: an alternate location (URL or import path) for the project's source.
2829
# source = "https://github.com/myfork/package.git"
2930

30-
## Overrides have the same structure as [[constraint]], but supercede all
31+
## Override have the same structure as [[constraint]], but supercede all
3132
## [[constraint]] declarations from all projects. Only the current project's
32-
## [[overrides]] are applied.
33+
## [[override]] is applied.
3334
##
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]]
3637
## Required: the root import path of the project being constrained.
3738
# name = "github.com/user/project"
3839
#

cmd/dep/testdata/harness_tests/ensure/override/case1/final/Gopkg.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929

3030
## Overrides have the same structure as [[constraint]], but supercede all
3131
## [[constraint]] declarations from all projects. Only the current project's
32-
## [[overrides]] are applied.
32+
## [[override]] are applied.
3333
##
3434
## Overrides are a sledgehammer. Use them only as a last resort.
35-
# [[overrides]]
35+
# [[override]]
3636
## Required: the root import path of the project being constrained.
3737
# name = "github.com/user/project"
3838
#

manifest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Manifest struct {
2525

2626
type rawManifest struct {
2727
Constraints []rawProject `toml:"constraint,omitempty"`
28-
Overrides []rawProject `toml:"overrides,omitempty"`
28+
Overrides []rawProject `toml:"override,omitempty"`
2929
Ignored []string `toml:"ignored,omitempty"`
3030
Required []string `toml:"required,omitempty"`
3131
}

testdata/manifest/error1.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ignored = ["github.com/foo/bar"]
77
version = "^v0.12.0"
88
source = "https://github.com/golang/dep/gps"
99

10-
[[overrides]]
10+
[[override]]
1111
name = "github.com/golang/dep/gps"
1212
branch = "master"
1313
revision = "d05d5aca9f895d19e9265839bffeadd74a2d2ecb"

testdata/manifest/golden.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ignored = ["github.com/foo/bar"]
88
name = "github.com/golang/dep/gps"
99
version = ">=0.12.0, <1.0.0"
1010

11-
[[overrides]]
11+
[[override]]
1212
branch = "master"
1313
name = "github.com/golang/dep/gps"
1414
source = "https://github.com/golang/dep/gps"

testdata/txn_writer/expected_manifest.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
## or in a dependency.
1313
# ignored = ["github.com/user/project/badpkg"]
1414

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
1617
## dep whether coming from the Gopkg.toml of the current project or a dependency.
1718
# [[constraint]]
1819
## Required: the root import path of the project being constrained.
@@ -27,12 +28,12 @@
2728
## Optional: an alternate location (URL or import path) for the project's source.
2829
# source = "https://github.com/myfork/package.git"
2930

30-
## Overrides have the same structure as [[constraint]], but supercede all
31+
## Override have the same structure as [[constraint]], but supercede all
3132
## [[constraint]] declarations from all projects. Only the current project's
32-
## [[overrides]] are applied.
33+
## [[override]] is applied.
3334
##
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]]
3637
## Required: the root import path of the project being constrained.
3738
# name = "github.com/user/project"
3839
#

txn_writer.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const exampleTOML = `
3636
## or in a dependency.
3737
# ignored = ["github.com/user/project/badpkg"]
3838
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
4041
## dep whether coming from the Gopkg.toml of the current project or a dependency.
4142
# [[constraint]]
4243
## Required: the root import path of the project being constrained.
@@ -51,12 +52,12 @@ const exampleTOML = `
5152
## Optional: an alternate location (URL or import path) for the project's source.
5253
# source = "https://github.com/myfork/package.git"
5354
54-
## Overrides have the same structure as [[constraint]], but supercede all
55+
## Override have the same structure as [[constraint]], but supercede all
5556
## [[constraint]] declarations from all projects. Only the current project's
56-
## [[overrides]] are applied.
57+
## [[override]] is applied.
5758
##
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]]
6061
## Required: the root import path of the project being constrained.
6162
# name = "github.com/user/project"
6263
#

0 commit comments

Comments
 (0)