]> Cypherpunks repositories - gostls13.git/commit
cmd/go: case-encode versions as well as module paths in files, URLs
authorRuss Cox <rsc@golang.org>
Wed, 18 Jul 2018 20:09:36 +0000 (16:09 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 20 Jul 2018 15:30:21 +0000 (15:30 +0000)
commita59f443897838c3d45f1f1df2d0fed9aa1aa232f
treed1746344a10fe064ed326b753398874378331e8b
parent4f1f503373cda7160392be94e3849b0c9b9ebbda
cmd/go: case-encode versions as well as module paths in files, URLs

While writing the GOPROXY docs it occurred to me that versions
can contain upper-case letters as well. The docs therefore say
that versions are case-encoded the same as paths in the proxy
protocol (and therefore in the cache as well). Make it so.

Change-Id: Ibc0c4af0192a4af251e5dd6f2d36cda7e529099a
Reviewed-on: https://go-review.googlesource.com/124795
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modfetch/cache.go
src/cmd/go/internal/modfetch/proxy.go
src/cmd/go/internal/module/module.go
src/cmd/go/proxy_test.go
src/cmd/go/testdata/mod/rsc.io_!q!u!o!t!e_v1.5.2.txt
src/cmd/go/testdata/mod/rsc.io_!q!u!o!t!e_v1.5.3-!p!r!e.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/rsc.io_quote_v2.0.0.txt
src/cmd/go/testdata/script/mod_case.txt