Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1b707ca

Browse files
committedApr 28, 2017
Trim out/tighten up examples text
1 parent ad41001 commit 1b707ca

File tree

15 files changed

+135
-255
lines changed

15 files changed

+135
-255
lines changed
 

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

+9-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
3+
## EXAMPLES, DOCS - feel free to delete!
4+
25
## Dependencies define constraints on how dependent projects should be
36
## incorporated into Gopkg.lock. They are respected by dep whether
47
## this project is the current project, or if it's a dependency.
@@ -15,27 +18,16 @@
1518
## bzr a 3-part id, svn a revision number.
1619
# revision = "abc123"
1720

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+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
22+
## all [[dependencies]] declarations from all projects. Only the current project's
23+
## [[overrides]] are applied.
2124
##
2225
## 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.
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"
3526

3627
## "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.
28+
## Gopkg.lock. This list is merged with the set of packages imported by the current
29+
## project. Use it when your project needs a package it doesn't explicitly import -
30+
## including "main" packages.
3931
# required = ["github.com/user/thing/cmd/thing"]
4032

4133
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/ensure/empty/case2/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
name = "github.com/sdboyer/deptest"
44
version = "^0.8.0"
55

6+
7+
## EXAMPLES, DOCS - feel free to delete!
8+
69
## Dependencies define constraints on how dependent projects should be
710
## incorporated into Gopkg.lock. They are respected by dep whether
811
## this project is the current project, or if it's a dependency.
@@ -19,27 +22,16 @@
1922
## bzr a 3-part id, svn a revision number.
2023
# revision = "abc123"
2124

22-
## Overrides have the same structure as [[dependencies]], but supercede all
23-
## [[dependencies]] declarations from all projects. However, only the current
24-
## project's overrides will apply.
25+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
26+
## all [[dependencies]] declarations from all projects. Only the current project's
27+
## [[overrides]] are applied.
2528
##
2629
## Overrides are a sledgehammer, and should be used only as a last resort.
27-
# [[overrides]]
28-
## Required: the root import path of the project being constrained
29-
# name = "github.com/user/project"
30-
## Optional: an alternate location (URL or import path) for the project's source
31-
# source = "https://github.com/myfork/package.git"
32-
## Optional, but recommended: the version constraint to enforce for the project.
33-
## Only one of "branch", "version" or "revision" can be specified.
34-
# version = "1.0.0"
35-
# branch = "master"
36-
## Note: revision will depend on your repository type; git and hg have SHA1s,
37-
## bzr a 3-part id, svn a revision number.
38-
# revision = "abc123"
3930

4031
## "required" lists a set of packages (not projects) that must be included in
41-
## Gopkg.lock. This has the same effect as directly importing a package, but
42-
## can be used to require "main" packages.
32+
## Gopkg.lock. This list is merged with the set of packages imported by the current
33+
## project. Use it when your project needs a package it doesn't explicitly import -
34+
## including "main" packages.
4335
# required = ["github.com/user/thing/cmd/thing"]
4436

4537
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/ensure/empty/case3/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ ignored = ["github.com/sdboyer/deptestdos"]
44
branch = "master"
55
name = "github.com/sdboyer/deptest"
66

7+
8+
## EXAMPLES, DOCS - feel free to delete!
9+
710
## Dependencies define constraints on how dependent projects should be
811
## incorporated into Gopkg.lock. They are respected by dep whether
912
## this project is the current project, or if it's a dependency.
@@ -20,27 +23,16 @@ ignored = ["github.com/sdboyer/deptestdos"]
2023
## bzr a 3-part id, svn a revision number.
2124
# revision = "abc123"
2225

23-
## Overrides have the same structure as [[dependencies]], but supercede all
24-
## [[dependencies]] declarations from all projects. However, only the current
25-
## project's overrides will apply.
26+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
27+
## all [[dependencies]] declarations from all projects. Only the current project's
28+
## [[overrides]] are applied.
2629
##
2730
## Overrides are a sledgehammer, and should be used only as a last resort.
28-
# [[overrides]]
29-
## Required: the root import path of the project being constrained
30-
# name = "github.com/user/project"
31-
## Optional: an alternate location (URL or import path) for the project's source
32-
# source = "https://github.com/myfork/package.git"
33-
## Optional, but recommended: the version constraint to enforce for the project.
34-
## Only one of "branch", "version" or "revision" can be specified.
35-
# version = "1.0.0"
36-
# branch = "master"
37-
## Note: revision will depend on your repository type; git and hg have SHA1s,
38-
## bzr a 3-part id, svn a revision number.
39-
# revision = "abc123"
4031

4132
## "required" lists a set of packages (not projects) that must be included in
42-
## Gopkg.lock. This has the same effect as directly importing a package, but
43-
## can be used to require "main" packages.
33+
## Gopkg.lock. This list is merged with the set of packages imported by the current
34+
## project. Use it when your project needs a package it doesn't explicitly import -
35+
## including "main" packages.
4436
# required = ["github.com/user/thing/cmd/thing"]
4537

4638
## "ignored" lists a set of packages (not projects) that are ignored when

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

+9-17
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
name = "github.com/sdboyer/deptest"
44
version = "1.0.0"
55

6+
7+
## EXAMPLES, DOCS - feel free to delete!
8+
69
## Dependencies define constraints on how dependent projects should be
710
## incorporated into Gopkg.lock. They are respected by dep whether
811
## this project is the current project, or if it's a dependency.
@@ -19,27 +22,16 @@
1922
## bzr a 3-part id, svn a revision number.
2023
# revision = "abc123"
2124

22-
## Overrides have the same structure as [[dependencies]], but supercede all
23-
## [[dependencies]] declarations from all projects. However, only the current
24-
## project's overrides will apply.
25+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
26+
## all [[dependencies]] declarations from all projects. Only the current project's
27+
## [[overrides]] are applied.
2528
##
2629
## Overrides are a sledgehammer, and should be used only as a last resort.
27-
# [[overrides]]
28-
## Required: the root import path of the project being constrained
29-
# name = "github.com/user/project"
30-
## Optional: an alternate location (URL or import path) for the project's source
31-
# source = "https://github.com/myfork/package.git"
32-
## Optional, but recommended: the version constraint to enforce for the project.
33-
## Only one of "branch", "version" or "revision" can be specified.
34-
# version = "1.0.0"
35-
# branch = "master"
36-
## Note: revision will depend on your repository type; git and hg have SHA1s,
37-
## bzr a 3-part id, svn a revision number.
38-
# revision = "abc123"
3930

4031
## "required" lists a set of packages (not projects) that must be included in
41-
## Gopkg.lock. This has the same effect as directly importing a package, but
42-
## can be used to require "main" packages.
32+
## Gopkg.lock. This list is merged with the set of packages imported by the current
33+
## project. Use it when your project needs a package it doesn't explicitly import -
34+
## including "main" packages.
4335
# required = ["github.com/user/thing/cmd/thing"]
4436

4537
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/init/case1/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
name = "github.com/sdboyer/deptestdos"
88
revision = "a0196baa11ea047dd65037287451d36b861b00ea"
99

10+
11+
## EXAMPLES, DOCS - feel free to delete!
12+
1013
## Dependencies define constraints on how dependent projects should be
1114
## incorporated into Gopkg.lock. They are respected by dep whether
1215
## this project is the current project, or if it's a dependency.
@@ -23,27 +26,16 @@
2326
## bzr a 3-part id, svn a revision number.
2427
# revision = "abc123"
2528

26-
## Overrides have the same structure as [[dependencies]], but supercede all
27-
## [[dependencies]] declarations from all projects. However, only the current
28-
## project's overrides will apply.
29+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
30+
## all [[dependencies]] declarations from all projects. Only the current project's
31+
## [[overrides]] are applied.
2932
##
3033
## Overrides are a sledgehammer, and should be used only as a last resort.
31-
# [[overrides]]
32-
## Required: the root import path of the project being constrained
33-
# name = "github.com/user/project"
34-
## Optional: an alternate location (URL or import path) for the project's source
35-
# source = "https://github.com/myfork/package.git"
36-
## Optional, but recommended: the version constraint to enforce for the project.
37-
## Only one of "branch", "version" or "revision" can be specified.
38-
# version = "1.0.0"
39-
# branch = "master"
40-
## Note: revision will depend on your repository type; git and hg have SHA1s,
41-
## bzr a 3-part id, svn a revision number.
42-
# revision = "abc123"
4334

4435
## "required" lists a set of packages (not projects) that must be included in
45-
## Gopkg.lock. This has the same effect as directly importing a package, but
46-
## can be used to require "main" packages.
36+
## Gopkg.lock. This list is merged with the set of packages imported by the current
37+
## project. Use it when your project needs a package it doesn't explicitly import -
38+
## including "main" packages.
4739
# required = ["github.com/user/thing/cmd/thing"]
4840

4941
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/init/case2/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
name = "github.com/sdboyer/deptest"
44
version = ">=0.8.0, <1.0.0"
55

6+
7+
## EXAMPLES, DOCS - feel free to delete!
8+
69
## Dependencies define constraints on how dependent projects should be
710
## incorporated into Gopkg.lock. They are respected by dep whether
811
## this project is the current project, or if it's a dependency.
@@ -19,27 +22,16 @@
1922
## bzr a 3-part id, svn a revision number.
2023
# revision = "abc123"
2124

22-
## Overrides have the same structure as [[dependencies]], but supercede all
23-
## [[dependencies]] declarations from all projects. However, only the current
24-
## project's overrides will apply.
25+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
26+
## all [[dependencies]] declarations from all projects. Only the current project's
27+
## [[overrides]] are applied.
2528
##
2629
## Overrides are a sledgehammer, and should be used only as a last resort.
27-
# [[overrides]]
28-
## Required: the root import path of the project being constrained
29-
# name = "github.com/user/project"
30-
## Optional: an alternate location (URL or import path) for the project's source
31-
# source = "https://github.com/myfork/package.git"
32-
## Optional, but recommended: the version constraint to enforce for the project.
33-
## Only one of "branch", "version" or "revision" can be specified.
34-
# version = "1.0.0"
35-
# branch = "master"
36-
## Note: revision will depend on your repository type; git and hg have SHA1s,
37-
## bzr a 3-part id, svn a revision number.
38-
# revision = "abc123"
3930

4031
## "required" lists a set of packages (not projects) that must be included in
41-
## Gopkg.lock. This has the same effect as directly importing a package, but
42-
## can be used to require "main" packages.
32+
## Gopkg.lock. This list is merged with the set of packages imported by the current
33+
## project. Use it when your project needs a package it doesn't explicitly import -
34+
## including "main" packages.
4335
# required = ["github.com/user/thing/cmd/thing"]
4436

4537
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/init/case3/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
name = "github.com/sdboyer/deptestdos"
88
revision = "a0196baa11ea047dd65037287451d36b861b00ea"
99

10+
11+
## EXAMPLES, DOCS - feel free to delete!
12+
1013
## Dependencies define constraints on how dependent projects should be
1114
## incorporated into Gopkg.lock. They are respected by dep whether
1215
## this project is the current project, or if it's a dependency.
@@ -23,27 +26,16 @@
2326
## bzr a 3-part id, svn a revision number.
2427
# revision = "abc123"
2528

26-
## Overrides have the same structure as [[dependencies]], but supercede all
27-
## [[dependencies]] declarations from all projects. However, only the current
28-
## project's overrides will apply.
29+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
30+
## all [[dependencies]] declarations from all projects. Only the current project's
31+
## [[overrides]] are applied.
2932
##
3033
## Overrides are a sledgehammer, and should be used only as a last resort.
31-
# [[overrides]]
32-
## Required: the root import path of the project being constrained
33-
# name = "github.com/user/project"
34-
## Optional: an alternate location (URL or import path) for the project's source
35-
# source = "https://github.com/myfork/package.git"
36-
## Optional, but recommended: the version constraint to enforce for the project.
37-
## Only one of "branch", "version" or "revision" can be specified.
38-
# version = "1.0.0"
39-
# branch = "master"
40-
## Note: revision will depend on your repository type; git and hg have SHA1s,
41-
## bzr a 3-part id, svn a revision number.
42-
# revision = "abc123"
4334

4435
## "required" lists a set of packages (not projects) that must be included in
45-
## Gopkg.lock. This has the same effect as directly importing a package, but
46-
## can be used to require "main" packages.
36+
## Gopkg.lock. This list is merged with the set of packages imported by the current
37+
## project. Use it when your project needs a package it doesn't explicitly import -
38+
## including "main" packages.
4739
# required = ["github.com/user/thing/cmd/thing"]
4840

4941
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/init/skip-hidden/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
3+
## EXAMPLES, DOCS - feel free to delete!
4+
25
## Dependencies define constraints on how dependent projects should be
36
## incorporated into Gopkg.lock. They are respected by dep whether
47
## this project is the current project, or if it's a dependency.
@@ -15,27 +18,16 @@
1518
## bzr a 3-part id, svn a revision number.
1619
# revision = "abc123"
1720

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+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
22+
## all [[dependencies]] declarations from all projects. Only the current project's
23+
## [[overrides]] are applied.
2124
##
2225
## 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.
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"
3526

3627
## "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.
28+
## Gopkg.lock. This list is merged with the set of packages imported by the current
29+
## project. Use it when your project needs a package it doesn't explicitly import -
30+
## including "main" packages.
3931
# required = ["github.com/user/thing/cmd/thing"]
4032

4133
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/remove/force/case1/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
name = "github.com/sdboyer/deptest"
44
version = ">=0.8.0, <1.0.0"
55

6+
7+
## EXAMPLES, DOCS - feel free to delete!
8+
69
## Dependencies define constraints on how dependent projects should be
710
## incorporated into Gopkg.lock. They are respected by dep whether
811
## this project is the current project, or if it's a dependency.
@@ -19,27 +22,16 @@
1922
## bzr a 3-part id, svn a revision number.
2023
# revision = "abc123"
2124

22-
## Overrides have the same structure as [[dependencies]], but supercede all
23-
## [[dependencies]] declarations from all projects. However, only the current
24-
## project's overrides will apply.
25+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
26+
## all [[dependencies]] declarations from all projects. Only the current project's
27+
## [[overrides]] are applied.
2528
##
2629
## Overrides are a sledgehammer, and should be used only as a last resort.
27-
# [[overrides]]
28-
## Required: the root import path of the project being constrained
29-
# name = "github.com/user/project"
30-
## Optional: an alternate location (URL or import path) for the project's source
31-
# source = "https://github.com/myfork/package.git"
32-
## Optional, but recommended: the version constraint to enforce for the project.
33-
## Only one of "branch", "version" or "revision" can be specified.
34-
# version = "1.0.0"
35-
# branch = "master"
36-
## Note: revision will depend on your repository type; git and hg have SHA1s,
37-
## bzr a 3-part id, svn a revision number.
38-
# revision = "abc123"
3930

4031
## "required" lists a set of packages (not projects) that must be included in
41-
## Gopkg.lock. This has the same effect as directly importing a package, but
42-
## can be used to require "main" packages.
32+
## Gopkg.lock. This list is merged with the set of packages imported by the current
33+
## project. Use it when your project needs a package it doesn't explicitly import -
34+
## including "main" packages.
4335
# required = ["github.com/user/thing/cmd/thing"]
4436

4537
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/remove/specific/case1/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
name = "github.com/sdboyer/deptestdos"
88
revision = "a0196baa11ea047dd65037287451d36b861b00ea"
99

10+
11+
## EXAMPLES, DOCS - feel free to delete!
12+
1013
## Dependencies define constraints on how dependent projects should be
1114
## incorporated into Gopkg.lock. They are respected by dep whether
1215
## this project is the current project, or if it's a dependency.
@@ -23,27 +26,16 @@
2326
## bzr a 3-part id, svn a revision number.
2427
# revision = "abc123"
2528

26-
## Overrides have the same structure as [[dependencies]], but supercede all
27-
## [[dependencies]] declarations from all projects. However, only the current
28-
## project's overrides will apply.
29+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
30+
## all [[dependencies]] declarations from all projects. Only the current project's
31+
## [[overrides]] are applied.
2932
##
3033
## Overrides are a sledgehammer, and should be used only as a last resort.
31-
# [[overrides]]
32-
## Required: the root import path of the project being constrained
33-
# name = "github.com/user/project"
34-
## Optional: an alternate location (URL or import path) for the project's source
35-
# source = "https://github.com/myfork/package.git"
36-
## Optional, but recommended: the version constraint to enforce for the project.
37-
## Only one of "branch", "version" or "revision" can be specified.
38-
# version = "1.0.0"
39-
# branch = "master"
40-
## Note: revision will depend on your repository type; git and hg have SHA1s,
41-
## bzr a 3-part id, svn a revision number.
42-
# revision = "abc123"
4334

4435
## "required" lists a set of packages (not projects) that must be included in
45-
## Gopkg.lock. This has the same effect as directly importing a package, but
46-
## can be used to require "main" packages.
36+
## Gopkg.lock. This list is merged with the set of packages imported by the current
37+
## project. Use it when your project needs a package it doesn't explicitly import -
38+
## including "main" packages.
4739
# required = ["github.com/user/thing/cmd/thing"]
4840

4941
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/remove/specific/case2/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
name = "github.com/sdboyer/deptestdos"
88
revision = "a0196baa11ea047dd65037287451d36b861b00ea"
99

10+
11+
## EXAMPLES, DOCS - feel free to delete!
12+
1013
## Dependencies define constraints on how dependent projects should be
1114
## incorporated into Gopkg.lock. They are respected by dep whether
1215
## this project is the current project, or if it's a dependency.
@@ -23,27 +26,16 @@
2326
## bzr a 3-part id, svn a revision number.
2427
# revision = "abc123"
2528

26-
## Overrides have the same structure as [[dependencies]], but supercede all
27-
## [[dependencies]] declarations from all projects. However, only the current
28-
## project's overrides will apply.
29+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
30+
## all [[dependencies]] declarations from all projects. Only the current project's
31+
## [[overrides]] are applied.
2932
##
3033
## Overrides are a sledgehammer, and should be used only as a last resort.
31-
# [[overrides]]
32-
## Required: the root import path of the project being constrained
33-
# name = "github.com/user/project"
34-
## Optional: an alternate location (URL or import path) for the project's source
35-
# source = "https://github.com/myfork/package.git"
36-
## Optional, but recommended: the version constraint to enforce for the project.
37-
## Only one of "branch", "version" or "revision" can be specified.
38-
# version = "1.0.0"
39-
# branch = "master"
40-
## Note: revision will depend on your repository type; git and hg have SHA1s,
41-
## bzr a 3-part id, svn a revision number.
42-
# revision = "abc123"
4334

4435
## "required" lists a set of packages (not projects) that must be included in
45-
## Gopkg.lock. This has the same effect as directly importing a package, but
46-
## can be used to require "main" packages.
36+
## Gopkg.lock. This list is merged with the set of packages imported by the current
37+
## project. Use it when your project needs a package it doesn't explicitly import -
38+
## including "main" packages.
4739
# required = ["github.com/user/thing/cmd/thing"]
4840

4941
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/remove/unused/case1/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
name = "github.com/sdboyer/deptestdos"
88
revision = "a0196baa11ea047dd65037287451d36b861b00ea"
99

10+
11+
## EXAMPLES, DOCS - feel free to delete!
12+
1013
## Dependencies define constraints on how dependent projects should be
1114
## incorporated into Gopkg.lock. They are respected by dep whether
1215
## this project is the current project, or if it's a dependency.
@@ -23,27 +26,16 @@
2326
## bzr a 3-part id, svn a revision number.
2427
# revision = "abc123"
2528

26-
## Overrides have the same structure as [[dependencies]], but supercede all
27-
## [[dependencies]] declarations from all projects. However, only the current
28-
## project's overrides will apply.
29+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
30+
## all [[dependencies]] declarations from all projects. Only the current project's
31+
## [[overrides]] are applied.
2932
##
3033
## Overrides are a sledgehammer, and should be used only as a last resort.
31-
# [[overrides]]
32-
## Required: the root import path of the project being constrained
33-
# name = "github.com/user/project"
34-
## Optional: an alternate location (URL or import path) for the project's source
35-
# source = "https://github.com/myfork/package.git"
36-
## Optional, but recommended: the version constraint to enforce for the project.
37-
## Only one of "branch", "version" or "revision" can be specified.
38-
# version = "1.0.0"
39-
# branch = "master"
40-
## Note: revision will depend on your repository type; git and hg have SHA1s,
41-
## bzr a 3-part id, svn a revision number.
42-
# revision = "abc123"
4334

4435
## "required" lists a set of packages (not projects) that must be included in
45-
## Gopkg.lock. This has the same effect as directly importing a package, but
46-
## can be used to require "main" packages.
36+
## Gopkg.lock. This list is merged with the set of packages imported by the current
37+
## project. Use it when your project needs a package it doesn't explicitly import -
38+
## including "main" packages.
4739
# required = ["github.com/user/thing/cmd/thing"]
4840

4941
## "ignored" lists a set of packages (not projects) that are ignored when

‎cmd/dep/testdata/harness_tests/status/case1/final/Gopkg.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
name = "github.com/sdboyer/deptest"
44
version = ">=0.8.0, <1.0.0"
55

6+
7+
## EXAMPLES, DOCS - feel free to delete!
8+
69
## Dependencies define constraints on how dependent projects should be
710
## incorporated into Gopkg.lock. They are respected by dep whether
811
## this project is the current project, or if it's a dependency.
@@ -19,27 +22,16 @@
1922
## bzr a 3-part id, svn a revision number.
2023
# revision = "abc123"
2124

22-
## Overrides have the same structure as [[dependencies]], but supercede all
23-
## [[dependencies]] declarations from all projects. However, only the current
24-
## project's overrides will apply.
25+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
26+
## all [[dependencies]] declarations from all projects. Only the current project's
27+
## [[overrides]] are applied.
2528
##
2629
## Overrides are a sledgehammer, and should be used only as a last resort.
27-
# [[overrides]]
28-
## Required: the root import path of the project being constrained
29-
# name = "github.com/user/project"
30-
## Optional: an alternate location (URL or import path) for the project's source
31-
# source = "https://github.com/myfork/package.git"
32-
## Optional, but recommended: the version constraint to enforce for the project.
33-
## Only one of "branch", "version" or "revision" can be specified.
34-
# version = "1.0.0"
35-
# branch = "master"
36-
## Note: revision will depend on your repository type; git and hg have SHA1s,
37-
## bzr a 3-part id, svn a revision number.
38-
# revision = "abc123"
3930

4031
## "required" lists a set of packages (not projects) that must be included in
41-
## Gopkg.lock. This has the same effect as directly importing a package, but
42-
## can be used to require "main" packages.
32+
## Gopkg.lock. This list is merged with the set of packages imported by the current
33+
## project. Use it when your project needs a package it doesn't explicitly import -
34+
## including "main" packages.
4335
# required = ["github.com/user/thing/cmd/thing"]
4436

4537
## "ignored" lists a set of packages (not projects) that are ignored when

‎testdata/txn_writer/expected_manifest.toml

+9-17
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
name = "github.com/sdboyer/dep-test"
44
version = "1.0.0"
55

6+
7+
## EXAMPLES, DOCS - feel free to delete!
8+
69
## Dependencies define constraints on how dependent projects should be
710
## incorporated into Gopkg.lock. They are respected by dep whether
811
## this project is the current project, or if it's a dependency.
@@ -19,27 +22,16 @@
1922
## bzr a 3-part id, svn a revision number.
2023
# revision = "abc123"
2124

22-
## Overrides have the same structure as [[dependencies]], but supercede all
23-
## [[dependencies]] declarations from all projects. However, only the current
24-
## project's overrides will apply.
25+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
26+
## all [[dependencies]] declarations from all projects. Only the current project's
27+
## [[overrides]] are applied.
2528
##
2629
## Overrides are a sledgehammer, and should be used only as a last resort.
27-
# [[overrides]]
28-
## Required: the root import path of the project being constrained
29-
# name = "github.com/user/project"
30-
## Optional: an alternate location (URL or import path) for the project's source
31-
# source = "https://github.com/myfork/package.git"
32-
## Optional, but recommended: the version constraint to enforce for the project.
33-
## Only one of "branch", "version" or "revision" can be specified.
34-
# version = "1.0.0"
35-
# branch = "master"
36-
## Note: revision will depend on your repository type; git and hg have SHA1s,
37-
## bzr a 3-part id, svn a revision number.
38-
# revision = "abc123"
3930

4031
## "required" lists a set of packages (not projects) that must be included in
41-
## Gopkg.lock. This has the same effect as directly importing a package, but
42-
## can be used to require "main" packages.
32+
## Gopkg.lock. This list is merged with the set of packages imported by the current
33+
## project. Use it when your project needs a package it doesn't explicitly import -
34+
## including "main" packages.
4335
# required = ["github.com/user/thing/cmd/thing"]
4436

4537
## "ignored" lists a set of packages (not projects) that are ignored when

‎txn_writer.go

+9-17
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ import (
2222
// if no dependencies are found in the project
2323
// during `dep init`
2424
const exampleTOML = `
25+
26+
## EXAMPLES, DOCS - feel free to delete!
27+
2528
## Dependencies define constraints on how dependent projects should be
2629
## incorporated into Gopkg.lock. They are respected by dep whether
2730
## this project is the current project, or if it's a dependency.
@@ -38,27 +41,16 @@ const exampleTOML = `
3841
## bzr a 3-part id, svn a revision number.
3942
# revision = "abc123"
4043
41-
## Overrides have the same structure as [[dependencies]], but supercede all
42-
## [[dependencies]] declarations from all projects. However, only the current
43-
## project's overrides will apply.
44+
## [[overrides]] follow the exact same structure as [[dependencies]], but supercede
45+
## all [[dependencies]] declarations from all projects. Only the current project's
46+
## [[overrides]] are applied.
4447
##
4548
## Overrides are a sledgehammer, and should be used only as a last resort.
46-
# [[overrides]]
47-
## Required: the root import path of the project being constrained
48-
# name = "github.com/user/project"
49-
## Optional: an alternate location (URL or import path) for the project's source
50-
# source = "https://github.com/myfork/package.git"
51-
## Optional, but recommended: the version constraint to enforce for the project.
52-
## Only one of "branch", "version" or "revision" can be specified.
53-
# version = "1.0.0"
54-
# branch = "master"
55-
## Note: revision will depend on your repository type; git and hg have SHA1s,
56-
## bzr a 3-part id, svn a revision number.
57-
# revision = "abc123"
5849
5950
## "required" lists a set of packages (not projects) that must be included in
60-
## Gopkg.lock. This has the same effect as directly importing a package, but
61-
## can be used to require "main" packages.
51+
## Gopkg.lock. This list is merged with the set of packages imported by the current
52+
## project. Use it when your project needs a package it doesn't explicitly import -
53+
## including "main" packages.
6254
# required = ["github.com/user/thing/cmd/thing"]
6355
6456
## "ignored" lists a set of packages (not projects) that are ignored when

0 commit comments

Comments
 (0)
This repository has been archived.