]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch: do not rely on file system for case sensitivity
authorRuss Cox <rsc@golang.org>
Mon, 16 Jul 2018 03:42:16 +0000 (23:42 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 18 Jul 2018 02:08:58 +0000 (02:08 +0000)
commit5760ffc7ef4c292acf0f85a04e2496a4af504ddb
tree58b5e9b9f5b5c314bd83c66d04c6086e2dc460ba
parent203c16592bd20ec22ed407d445719b90585626b1
cmd/go/internal/modfetch: do not rely on file system for case sensitivity

Over time there may exist two modules with names that differ only in case.
On systems with case-insensitive file systems, we need to make sure those
modules do not collide in the download cache.

Do this by using the new "safe encoding" for file system paths as well as
proxy paths.

Fixes #25992.

Change-Id: I717a9987a87ad5c6927d063bf30d10d9229498c9
Reviewed-on: https://go-review.googlesource.com/124379
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modcmd/verify.go
src/cmd/go/internal/modfetch/cache.go
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/internal/modfetch/proxy.go
src/cmd/go/internal/modfetch/repo.go
src/cmd/go/internal/modload/build.go
src/cmd/go/mod_test.go
src/cmd/go/proxy_test.go
src/cmd/go/testdata/mod/rsc.io_!q!u!o!t!e_v1.5.2.txt [new file with mode: 0644]