]> Cypherpunks repositories - gostls13.git/commit
cmd/go: make 'go get <module>@none' idempotent
authorBryan C. Mills <bcmills@google.com>
Wed, 1 Aug 2018 17:22:02 +0000 (13:22 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 7 Aug 2018 18:34:22 +0000 (18:34 +0000)
commita685a8d11484b87f61f9317fd92151b7cc46d124
tree73d60643cf75f966d16c54ddc37fefa195ef86ab
parent9ef5ee911c2265cde86887032fc56ce4c335d580
cmd/go: make 'go get <module>@none' idempotent

Before this change, 'go get <module>@none' for a module not in the build list
would add the module to go.mod (with the explicit version string "none").
Subsequent go commands would fail with 'invalid module version "none"'.

Change-Id: Iebcaeab89eb19959f0a9aeda836f179962953313
Reviewed-on: https://go-review.googlesource.com/127215
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/internal/modget/get.go
src/cmd/go/testdata/script/mod_get_none.txt [new file with mode: 0644]