]> Cypherpunks repositories - gostls13.git/commit
cmd/go: default to mod=readonly when the go.mod file is read-only
authorBryan C. Mills <bcmills@google.com>
Thu, 31 Oct 2019 20:54:21 +0000 (16:54 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 1 Nov 2019 19:01:14 +0000 (19:01 +0000)
commit2c8529cb4d474ab1c7993d3a5af27d9c5e748e0b
tree97aec6fb0a616eefee331cdb1d23f53d70926cd4
parent8d45e612f1255619e8637acff5546c09f0aa3e67
cmd/go: default to mod=readonly when the go.mod file is read-only

Updates #30185
Updates #33326
Updates #34822

Change-Id: Ie13651585898d1bbbf4f779b97ee50b6c7e7ad50
Reviewed-on: https://go-review.googlesource.com/c/go/+/204521
Run-TryBot: Bryan C. Mills <bcmills@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/cfg/cfg.go
src/cmd/go/internal/modfetch/repo.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/modload/stat_openfile.go [new file with mode: 0644]
src/cmd/go/internal/modload/stat_unix.go [new file with mode: 0644]
src/cmd/go/internal/modload/stat_windows.go [new file with mode: 0644]
src/cmd/go/script_test.go
src/cmd/go/testdata/script/mod_readonly.txt
src/cmd/go/testdata/script/mod_vendor_auto.txt