This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand example Gopkg.toml text; always add on init
- Loading branch information
Showing
15 changed files
with
653 additions
and
16 deletions.
There are no files selected for viewing
41 changes: 38 additions & 3 deletions
41
cmd/dep/testdata/harness_tests/ensure/empty/case1/final/Gopkg.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,44 @@ | ||
|
||
# Example: | ||
## Dependencies define constraints on how dependent projects should be | ||
## incorporated into Gopkg.lock. They are respected by dep whether | ||
## this project is the current project, or if it's a dependency. | ||
# [[dependencies]] | ||
## Required: the root import path of the project being constrained | ||
# name = "github.com/user/project" | ||
## Optional: an alternate location (URL or import path) for the project's source | ||
# source = "https://github.com/myfork/package.git" | ||
## Optional, but recommended: the version constraint to enforce for the project. | ||
## Only one of "branch", "version" or "revision" can be specified. | ||
# version = "1.0.0" | ||
# branch = "master" | ||
# name = "github.com/vendor/package" | ||
# Note: revision will depend on your repository type, i.e git, svc, bzr etc... | ||
## Note: revision will depend on your repository type; git and hg have SHA1s, | ||
## bzr a 3-part id, svn a revision number. | ||
# revision = "abc123" | ||
|
||
## Overrides have the same structure as [[dependencies]], but supercede all | ||
## [[dependencies]] declarations from all projects. However, only the current | ||
## project's overrides will apply. | ||
## | ||
## Overrides are a sledgehammer, and should be used only as a last resort. | ||
# [[overrides]] | ||
## Required: the root import path of the project being constrained | ||
# name = "github.com/user/project" | ||
## Optional: an alternate location (URL or import path) for the project's source | ||
# source = "https://github.com/myfork/package.git" | ||
## Optional, but recommended: the version constraint to enforce for the project. | ||
## Only one of "branch", "version" or "revision" can be specified. | ||
# version = "1.0.0" | ||
# branch = "master" | ||
## Note: revision will depend on your repository type; git and hg have SHA1s, | ||
## bzr a 3-part id, svn a revision number. | ||
# revision = "abc123" | ||
|
||
## "required" lists a set of packages (not projects) that must be included in | ||
## Gopkg.lock. This has the same effect as directly importing a package, but | ||
## can be used to require "main" packages. | ||
# required = ["github.com/user/thing/cmd/thing"] | ||
|
||
## "ignored" lists a set of packages (not projects) that are ignored when | ||
## dep statically analyzes source code. Ignored packages can be in this project, | ||
## or in a dependency. | ||
# ignored = ["github.com/user/project/badpkg"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 38 additions & 3 deletions
41
cmd/dep/testdata/harness_tests/init/skip-hidden/final/Gopkg.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,44 @@ | ||
|
||
# Example: | ||
## Dependencies define constraints on how dependent projects should be | ||
## incorporated into Gopkg.lock. They are respected by dep whether | ||
## this project is the current project, or if it's a dependency. | ||
# [[dependencies]] | ||
## Required: the root import path of the project being constrained | ||
# name = "github.com/user/project" | ||
## Optional: an alternate location (URL or import path) for the project's source | ||
# source = "https://github.com/myfork/package.git" | ||
## Optional, but recommended: the version constraint to enforce for the project. | ||
## Only one of "branch", "version" or "revision" can be specified. | ||
# version = "1.0.0" | ||
# branch = "master" | ||
# name = "github.com/vendor/package" | ||
# Note: revision will depend on your repository type, i.e git, svc, bzr etc... | ||
## Note: revision will depend on your repository type; git and hg have SHA1s, | ||
## bzr a 3-part id, svn a revision number. | ||
# revision = "abc123" | ||
|
||
## Overrides have the same structure as [[dependencies]], but supercede all | ||
## [[dependencies]] declarations from all projects. However, only the current | ||
## project's overrides will apply. | ||
## | ||
## Overrides are a sledgehammer, and should be used only as a last resort. | ||
# [[overrides]] | ||
## Required: the root import path of the project being constrained | ||
# name = "github.com/user/project" | ||
## Optional: an alternate location (URL or import path) for the project's source | ||
# source = "https://github.com/myfork/package.git" | ||
## Optional, but recommended: the version constraint to enforce for the project. | ||
## Only one of "branch", "version" or "revision" can be specified. | ||
# version = "1.0.0" | ||
# branch = "master" | ||
## Note: revision will depend on your repository type; git and hg have SHA1s, | ||
## bzr a 3-part id, svn a revision number. | ||
# revision = "abc123" | ||
|
||
## "required" lists a set of packages (not projects) that must be included in | ||
## Gopkg.lock. This has the same effect as directly importing a package, but | ||
## can be used to require "main" packages. | ||
# required = ["github.com/user/thing/cmd/thing"] | ||
|
||
## "ignored" lists a set of packages (not projects) that are ignored when | ||
## dep statically analyzes source code. Ignored packages can be in this project, | ||
## or in a dependency. | ||
# ignored = ["github.com/user/project/badpkg"] |
Oops, something went wrong.