cmd/go: go mod verify reports "all modules verified" in auto mode #31974
Labels
FrozenDueToAge
GoCommand
cmd/go
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
go version go1.12 linux/amd64
go env
OutputWhat did you do?
go mod verify
.What did you expect to see?
gopkg.in/yaml.v2 v2.2.2: dir has been modified (/home/jsha/gopkg/pkg/mod/gopkg.in/[email protected])
What did you see instead?
all modules verified
This is with
GO111MODULE
unset, which I understand should put Go modules in "auto" mode, which should be equivalent to "on" for this command, since go.mod was present.I get the same results if I run with an explicit
GO111MODULE=auto
orGO111MODULE=off
. If I run withGO111MODULE=on
, I see the expected error.I think regardless of whether
go mod verify
chooses module mode or not, it should never report "all modules verified" if it didn't do any verification. Similarly it should never return 0 if it didn't do any verification.The text was updated successfully, but these errors were encountered: