Join GitHub today
cmd/go: go mod tidy, vendor hide module load errors #27063
The module loader leaves some problems for the standard loader to find, like not being able to resolve imports. But 'go mod tidy' and 'go mod vendor' do not run the standard loader, so those problems go undiagnosed. Maybe we should look for them explicitly.
For example make a file x.go that says import "nonexist". go mod tidy succeeds quietly.