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

Commit f861939

Browse files
committed
More tweaks based on review
1 parent 99f7861 commit f861939

File tree

15 files changed

+120
-195
lines changed

15 files changed

+120
-195
lines changed

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,38 @@
11

2-
## EXAMPLE (these lines may be deleted)
3-
#
2+
## Gopkg.toml example (these lines may be deleted)
3+
44
## "required" lists a set of packages (not projects) that must be included in
55
## Gopkg.lock. This list is merged with the set of packages imported by the current
66
## project. Use it when your project needs a package it doesn't explicitly import -
77
## including "main" packages.
88
# required = ["github.com/user/thing/cmd/thing"]
9-
#
10-
#
9+
1110
## "ignored" lists a set of packages (not projects) that are ignored when
1211
## dep statically analyzes source code. Ignored packages can be in this project,
1312
## or in a dependency.
1413
# ignored = ["github.com/user/project/badpkg"]
15-
#
16-
#
17-
# [[dependencies]]
14+
1815
## Dependencies define constraints on dependent projects. They are respected by
1916
## dep whether coming from the Gopkg.toml of the current project or a dependency.
20-
#
17+
# [[dependencies]]
2118
## Required: the root import path of the project being constrained.
2219
# name = "github.com/user/project"
2320
#
24-
## Optional, but recommended: the version constraint to enforce for the project.
21+
## Recommended: the version constraint to enforce for the project.
2522
## Only one of "branch", "version" or "revision" can be specified.
2623
# version = "1.0.0"
2724
# branch = "master"
2825
# revision = "abc123"
2926
#
3027
## Optional: an alternate location (URL or import path) for the project's source.
3128
# source = "https://github.com/myfork/package.git"
32-
#
33-
#
34-
# [[overrides]]
29+
3530
## Overrides have the same structure as [[dependencies]], but supercede all
3631
## [[dependencies]] declarations from all projects. Only the current project's
3732
## [[overrides]] are applied.
3833
##
3934
## Overrides are a sledgehammer. Use them only as a last resort.
40-
#
35+
# [[overrides]]
4136
## Required: the root import path of the project being constrained.
4237
# name = "github.com/user/project"
4338
#

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,38 @@
11

2-
## EXAMPLE (these lines may be deleted)
3-
#
2+
## Gopkg.toml example (these lines may be deleted)
3+
44
## "required" lists a set of packages (not projects) that must be included in
55
## Gopkg.lock. This list is merged with the set of packages imported by the current
66
## project. Use it when your project needs a package it doesn't explicitly import -
77
## including "main" packages.
88
# required = ["github.com/user/thing/cmd/thing"]
9-
#
10-
#
9+
1110
## "ignored" lists a set of packages (not projects) that are ignored when
1211
## dep statically analyzes source code. Ignored packages can be in this project,
1312
## or in a dependency.
1413
# ignored = ["github.com/user/project/badpkg"]
15-
#
16-
#
17-
# [[dependencies]]
14+
1815
## Dependencies define constraints on dependent projects. They are respected by
1916
## dep whether coming from the Gopkg.toml of the current project or a dependency.
20-
#
17+
# [[dependencies]]
2118
## Required: the root import path of the project being constrained.
2219
# name = "github.com/user/project"
2320
#
24-
## Optional, but recommended: the version constraint to enforce for the project.
21+
## Recommended: the version constraint to enforce for the project.
2522
## Only one of "branch", "version" or "revision" can be specified.
2623
# version = "1.0.0"
2724
# branch = "master"
2825
# revision = "abc123"
2926
#
3027
## Optional: an alternate location (URL or import path) for the project's source.
3128
# source = "https://github.com/myfork/package.git"
32-
#
33-
#
34-
# [[overrides]]
29+
3530
## Overrides have the same structure as [[dependencies]], but supercede all
3631
## [[dependencies]] declarations from all projects. Only the current project's
3732
## [[overrides]] are applied.
3833
##
3934
## Overrides are a sledgehammer. Use them only as a last resort.
40-
#
35+
# [[overrides]]
4136
## Required: the root import path of the project being constrained.
4237
# name = "github.com/user/project"
4338
#

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,38 @@
11

2-
## EXAMPLE (these lines may be deleted)
3-
#
2+
## Gopkg.toml example (these lines may be deleted)
3+
44
## "required" lists a set of packages (not projects) that must be included in
55
## Gopkg.lock. This list is merged with the set of packages imported by the current
66
## project. Use it when your project needs a package it doesn't explicitly import -
77
## including "main" packages.
88
# required = ["github.com/user/thing/cmd/thing"]
9-
#
10-
#
9+
1110
## "ignored" lists a set of packages (not projects) that are ignored when
1211
## dep statically analyzes source code. Ignored packages can be in this project,
1312
## or in a dependency.
1413
# ignored = ["github.com/user/project/badpkg"]
15-
#
16-
#
17-
# [[dependencies]]
14+
1815
## Dependencies define constraints on dependent projects. They are respected by
1916
## dep whether coming from the Gopkg.toml of the current project or a dependency.
20-
#
17+
# [[dependencies]]
2118
## Required: the root import path of the project being constrained.
2219
# name = "github.com/user/project"
2320
#
24-
## Optional, but recommended: the version constraint to enforce for the project.
21+
## Recommended: the version constraint to enforce for the project.
2522
## Only one of "branch", "version" or "revision" can be specified.
2623
# version = "1.0.0"
2724
# branch = "master"
2825
# revision = "abc123"
2926
#
3027
## Optional: an alternate location (URL or import path) for the project's source.
3128
# source = "https://github.com/myfork/package.git"
32-
#
33-
#
34-
# [[overrides]]
29+
3530
## Overrides have the same structure as [[dependencies]], but supercede all
3631
## [[dependencies]] declarations from all projects. Only the current project's
3732
## [[overrides]] are applied.
3833
##
3934
## Overrides are a sledgehammer. Use them only as a last resort.
40-
#
35+
# [[overrides]]
4136
## Required: the root import path of the project being constrained.
4237
# name = "github.com/user/project"
4338
#

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,38 @@
11

2-
## EXAMPLE (these lines may be deleted)
3-
#
2+
## Gopkg.toml example (these lines may be deleted)
3+
44
## "required" lists a set of packages (not projects) that must be included in
55
## Gopkg.lock. This list is merged with the set of packages imported by the current
66
## project. Use it when your project needs a package it doesn't explicitly import -
77
## including "main" packages.
88
# required = ["github.com/user/thing/cmd/thing"]
9-
#
10-
#
9+
1110
## "ignored" lists a set of packages (not projects) that are ignored when
1211
## dep statically analyzes source code. Ignored packages can be in this project,
1312
## or in a dependency.
1413
# ignored = ["github.com/user/project/badpkg"]
15-
#
16-
#
17-
# [[dependencies]]
14+
1815
## Dependencies define constraints on dependent projects. They are respected by
1916
## dep whether coming from the Gopkg.toml of the current project or a dependency.
20-
#
17+
# [[dependencies]]
2118
## Required: the root import path of the project being constrained.
2219
# name = "github.com/user/project"
2320
#
24-
## Optional, but recommended: the version constraint to enforce for the project.
21+
## Recommended: the version constraint to enforce for the project.
2522
## Only one of "branch", "version" or "revision" can be specified.
2623
# version = "1.0.0"
2724
# branch = "master"
2825
# revision = "abc123"
2926
#
3027
## Optional: an alternate location (URL or import path) for the project's source.
3128
# source = "https://github.com/myfork/package.git"
32-
#
33-
#
34-
# [[overrides]]
29+
3530
## Overrides have the same structure as [[dependencies]], but supercede all
3631
## [[dependencies]] declarations from all projects. Only the current project's
3732
## [[overrides]] are applied.
3833
##
3934
## Overrides are a sledgehammer. Use them only as a last resort.
40-
#
35+
# [[overrides]]
4136
## Required: the root import path of the project being constrained.
4237
# name = "github.com/user/project"
4338
#

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,38 @@
11

2-
## EXAMPLE (these lines may be deleted)
3-
#
2+
## Gopkg.toml example (these lines may be deleted)
3+
44
## "required" lists a set of packages (not projects) that must be included in
55
## Gopkg.lock. This list is merged with the set of packages imported by the current
66
## project. Use it when your project needs a package it doesn't explicitly import -
77
## including "main" packages.
88
# required = ["github.com/user/thing/cmd/thing"]
9-
#
10-
#
9+
1110
## "ignored" lists a set of packages (not projects) that are ignored when
1211
## dep statically analyzes source code. Ignored packages can be in this project,
1312
## or in a dependency.
1413
# ignored = ["github.com/user/project/badpkg"]
15-
#
16-
#
17-
# [[dependencies]]
14+
1815
## Dependencies define constraints on dependent projects. They are respected by
1916
## dep whether coming from the Gopkg.toml of the current project or a dependency.
20-
#
17+
# [[dependencies]]
2118
## Required: the root import path of the project being constrained.
2219
# name = "github.com/user/project"
2320
#
24-
## Optional, but recommended: the version constraint to enforce for the project.
21+
## Recommended: the version constraint to enforce for the project.
2522
## Only one of "branch", "version" or "revision" can be specified.
2623
# version = "1.0.0"
2724
# branch = "master"
2825
# revision = "abc123"
2926
#
3027
## Optional: an alternate location (URL or import path) for the project's source.
3128
# source = "https://github.com/myfork/package.git"
32-
#
33-
#
34-
# [[overrides]]
29+
3530
## Overrides have the same structure as [[dependencies]], but supercede all
3631
## [[dependencies]] declarations from all projects. Only the current project's
3732
## [[overrides]] are applied.
3833
##
3934
## Overrides are a sledgehammer. Use them only as a last resort.
40-
#
35+
# [[overrides]]
4136
## Required: the root import path of the project being constrained.
4237
# name = "github.com/user/project"
4338
#

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,38 @@
11

2-
## EXAMPLE (these lines may be deleted)
3-
#
2+
## Gopkg.toml example (these lines may be deleted)
3+
44
## "required" lists a set of packages (not projects) that must be included in
55
## Gopkg.lock. This list is merged with the set of packages imported by the current
66
## project. Use it when your project needs a package it doesn't explicitly import -
77
## including "main" packages.
88
# required = ["github.com/user/thing/cmd/thing"]
9-
#
10-
#
9+
1110
## "ignored" lists a set of packages (not projects) that are ignored when
1211
## dep statically analyzes source code. Ignored packages can be in this project,
1312
## or in a dependency.
1413
# ignored = ["github.com/user/project/badpkg"]
15-
#
16-
#
17-
# [[dependencies]]
14+
1815
## Dependencies define constraints on dependent projects. They are respected by
1916
## dep whether coming from the Gopkg.toml of the current project or a dependency.
20-
#
17+
# [[dependencies]]
2118
## Required: the root import path of the project being constrained.
2219
# name = "github.com/user/project"
2320
#
24-
## Optional, but recommended: the version constraint to enforce for the project.
21+
## Recommended: the version constraint to enforce for the project.
2522
## Only one of "branch", "version" or "revision" can be specified.
2623
# version = "1.0.0"
2724
# branch = "master"
2825
# revision = "abc123"
2926
#
3027
## Optional: an alternate location (URL or import path) for the project's source.
3128
# source = "https://github.com/myfork/package.git"
32-
#
33-
#
34-
# [[overrides]]
29+
3530
## Overrides have the same structure as [[dependencies]], but supercede all
3631
## [[dependencies]] declarations from all projects. Only the current project's
3732
## [[overrides]] are applied.
3833
##
3934
## Overrides are a sledgehammer. Use them only as a last resort.
40-
#
35+
# [[overrides]]
4136
## Required: the root import path of the project being constrained.
4237
# name = "github.com/user/project"
4338
#

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,38 @@
11

2-
## EXAMPLE (these lines may be deleted)
3-
#
2+
## Gopkg.toml example (these lines may be deleted)
3+
44
## "required" lists a set of packages (not projects) that must be included in
55
## Gopkg.lock. This list is merged with the set of packages imported by the current
66
## project. Use it when your project needs a package it doesn't explicitly import -
77
## including "main" packages.
88
# required = ["github.com/user/thing/cmd/thing"]
9-
#
10-
#
9+
1110
## "ignored" lists a set of packages (not projects) that are ignored when
1211
## dep statically analyzes source code. Ignored packages can be in this project,
1312
## or in a dependency.
1413
# ignored = ["github.com/user/project/badpkg"]
15-
#
16-
#
17-
# [[dependencies]]
14+
1815
## Dependencies define constraints on dependent projects. They are respected by
1916
## dep whether coming from the Gopkg.toml of the current project or a dependency.
20-
#
17+
# [[dependencies]]
2118
## Required: the root import path of the project being constrained.
2219
# name = "github.com/user/project"
2320
#
24-
## Optional, but recommended: the version constraint to enforce for the project.
21+
## Recommended: the version constraint to enforce for the project.
2522
## Only one of "branch", "version" or "revision" can be specified.
2623
# version = "1.0.0"
2724
# branch = "master"
2825
# revision = "abc123"
2926
#
3027
## Optional: an alternate location (URL or import path) for the project's source.
3128
# source = "https://github.com/myfork/package.git"
32-
#
33-
#
34-
# [[overrides]]
29+
3530
## Overrides have the same structure as [[dependencies]], but supercede all
3631
## [[dependencies]] declarations from all projects. Only the current project's
3732
## [[overrides]] are applied.
3833
##
3934
## Overrides are a sledgehammer. Use them only as a last resort.
40-
#
35+
# [[overrides]]
4136
## Required: the root import path of the project being constrained.
4237
# name = "github.com/user/project"
4338
#

0 commit comments

Comments
 (0)