cmd/go: -mod=readonly causes go install p@version to fail with "missing go.sum entry" #43278
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
From https://groups.google.com/g/golang-nuts/c/XeQhJghJGPs
I have
GOFLAGS=-mod=readonly
in my environment to avoid unnoticed changes to go.mod and go.sum. However, I'm getting a weird error from the (new in 1.16)go install p@version
form to install a Go program:Clearing GOFLAGS does work:
I can't explain the difference, nor the error. In case it makes a difference, I have a checkout of gioui.org/cmd/gogio at the above revision where
go mod tidy
is a no-op.What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered: