cmd/go: describe difference in go mod verify
vs verification during 'go mod tidy'
#36130
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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
)?go env
OutputWhat did you do?
tainted the hash in the
go.sum
file in workspace (e.g. modifying the hash values manually) and rango mod tidy
andgo mod verify
What did you expect to see?
go mod verify
reports the problem.What did you see instead?
go mod verify
reports everything is all good.Thankfully,
go mod tidy
detects the problem.I guess it's because
go mod verify
checks only whether the version in the cache is valid.go mod help verify
implies that already, but I found this behavior somewhat surprising.The text was updated successfully, but these errors were encountered: