you're using the analysis packages which have dependencies on calling the go cmd internally you could try passing readonly via GOFLAGS
the fact that your go.mod/go.sum changed means you should reevaluate what you're doing, specifically you have an unversioned/untracked dependency on gorilla/mux via your testdata as an aside, go1.16 readonly by default works (tested with tip) On Sunday, November 1, 2020 at 6:26:17 PM UTC+1 ma...@eliasnaur.com wrote: > On Sunday, 1 November 2020 at 13:52:34 UTC+1 miki....@gmail.com wrote: > >> I try to change the "go run" command to use "-mod=readonly", didn't help. >> > > Drive-by comment in case you weren't aware: Go 1.16 is switching to > -mod=readonly > by default. The proposal and links to the implementation are in > https://github.com/golang/go/issues/40728. > > Hope it helps, > 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/0eee972d-0ab7-4495-89eb-f4524da352bcn%40googlegroups.com.