This repository was archived by the owner on Sep 9, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,19 @@ Initialize the project at filepath root by parsing its dependencies, writing
25
25
manifest and lock files, and vendoring the dependencies. If root isn't
26
26
specified, use the current directory.
27
27
28
- The version of each dependency will reflect the current state of the GOPATH. If
29
- a dependency doesn't exist in the GOPATH, a version will be selected from the
30
- versions available from the upstream source per the following algorithm:
28
+ By default, the dependencies are resolved over the network. A version will be
29
+ selected from the versions available from the upstream source per the following
30
+ algorithm:
31
31
32
32
- Tags conforming to semver (sorted by semver rules)
33
33
- Default branch(es) (sorted lexicographically)
34
34
- Non-semver tags (sorted lexicographically)
35
35
36
+ An alternate mode can be activated by passing -gopath. In this mode, version of
37
+ each dependency will reflect the current state of the GOPATH. If a dependency
38
+ doesn't exist in the GOPATH, a version will be selected based on the above
39
+ network version selection algorithm.
40
+
36
41
A Gopkg.toml file will be written with inferred version constraints for all
37
42
direct dependencies. Gopkg.lock will be written with precise versions, and
38
43
vendor/ will be populated with the precise versions written to Gopkg.lock.
You can’t perform that action at this time.
0 commit comments