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

Commit 588f47e

Browse files
committed
Update init CLI helptext
1 parent 9b647fa commit 588f47e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cmd/dep/init.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,19 @@ Initialize the project at filepath root by parsing its dependencies, writing
2525
manifest and lock files, and vendoring the dependencies. If root isn't
2626
specified, use the current directory.
2727
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:
3131
3232
- Tags conforming to semver (sorted by semver rules)
3333
- Default branch(es) (sorted lexicographically)
3434
- Non-semver tags (sorted lexicographically)
3535
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+
3641
A Gopkg.toml file will be written with inferred version constraints for all
3742
direct dependencies. Gopkg.lock will be written with precise versions, and
3843
vendor/ will be populated with the precise versions written to Gopkg.lock.

0 commit comments

Comments
 (0)