Filed as https://github.com/golang/go/issues/43278
On Friday, 18 December 2020 at 20:41:47 UTC+1 ma...@eliasnaur.com wrote: > Hi, > > 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: > > $ go version > go version devel +2de7866470 Fri Dec 18 18:25:14 2020 +0000 darwin/amd64 > $ cd $(mktemp -d) > $ GOFLAGS=-mod=readonly go install > gioui.org/cmd/gogio@40c082e94961adaf55886b45710a54d0247ff1bf > go install gioui.org/cmd/gogio@40c082e94961adaf55886b45710a54d0247ff1bf: > gioui.org/c...@v0.0.0-20201218091821-40c082e94961 > <http://gioui.org/cmd@v0.0.0-20201218091821-40c082e94961>: missing go.sum > entry > > Clearing GOFLAGS does work: > > $ GOFLAGS= go install > gioui.org/cmd/gogio@40c082e94961adaf55886b45710a54d0247ff1bf > go: downloading gioui.org v0.0.0-20201218091821-40c082e94961 > go: downloading gioui.org/cmd v0.0.0-20201218091821-40c082e94961 > > I can't explain the difference, nor the error. Can you? 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. > > Elias > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/98099ff1-90aa-49d9-94be-ae36f6be27fdn%40googlegroups.com.