cmd/go: go mod vendor has started to report error when encountering permission errors #40723
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Vendoring
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?From Docker golang:1.15-alpine
go env
OutputWhat did you do?
The same happens on Ubuntu but also on alpine so here is a reproducible Dockerfile
Then run for different go version:
go 1.15 breaking:
docker build --build-arg GO_VERSION=1.15 -t gomodisbroken . && docker run --rm gomodisbroken
go 1.14 working:
docker build --build-arg GO_VERSION=1.14 -t gomodisbroken . && docker run --rm gomodisbroken
What did you expect to see?
Expected
go mod vendor
to ignore silently folders it cannot read and exit with a 0 code.Same as go1.14:
What did you see instead?
with go 1.15:
go mod vendor
exited with code 1 due to permission denied on the folder protected.The text was updated successfully, but these errors were encountered: