]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modget: support the suffix '@patch' in 'go get'
authorBryan C. Mills <bcmills@google.com>
Fri, 15 Mar 2019 18:58:40 +0000 (14:58 -0400)
committerBryan C. Mills <bcmills@google.com>
Mon, 1 Apr 2019 16:37:07 +0000 (16:37 +0000)
commita7fc71092dfb6c6d5fef09b8c85b7d9e78908717
treec1a789f5c4f799848f75950a298b3f242101b9f5
parentd6b2b35e641eeac9f764d21dcaed46973b3e2720
cmd/go/internal/modget: support the suffix '@patch' in 'go get'

As of this change, an explicit '@patch' suffix is to '-u=patch' as
'@latest' is to '-u'.

RELNOTE='go get' in module mode now supports the version suffix '@patch'.

Fixes #26812

Change-Id: Ib5eee40de640440f7470d37a574b311ef8a67f67
Reviewed-on: https://go-review.googlesource.com/c/go/+/167747
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
14 files changed:
src/cmd/go/alldocs.go
src/cmd/go/internal/modget/get.go
src/cmd/go/internal/modload/load.go
src/cmd/go/testdata/mod/patch.example.com_depofdirectpatch_v1.0.0.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/patch.example.com_depofdirectpatch_v1.0.1.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/patch.example.com_direct_v1.0.0.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/patch.example.com_direct_v1.0.1.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/patch.example.com_direct_v1.1.0.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/patch.example.com_indirect_v1.0.0.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/patch.example.com_indirect_v1.0.1.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/patch.example.com_indirect_v1.1.0.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_upgrade_patch.txt [deleted file]
src/cmd/go/testdata/script/mod_upgrade_patch_mod.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_upgrade_patch_pkg.txt [new file with mode: 0644]