-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand example Gopkg.toml text; always add on init #462
Changes from 1 commit
ad41001
f4079c9
c070fbe
99f7861
f861939
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps just note that they have the same format, rather than repeating everything? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, that'll help cut down on length, 👍 |
||
# 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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this a constraint string like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It can be either (though note that when #225 goes in, We need a more formal writeup of all of these rules. The examples here should really just be terse, and point to said writeup. |
||
# 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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/ignored when/ignored completely when/ |
||
## dep statically analyzes source code. Ignored packages can be in this project, | ||
## or in a dependency. | ||
# ignored = ["github.com/user/project/badpkg"] |
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"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supersede
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah, no kidding 😛