Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: `go mod graph` doesn't return an error in GOPATH mode #31237
What version of Go are you using (
Commands going through LoadBuildList() have a similar behavior in an empty directory.
The common cause looks like a check on CmdInit as
Removing this check gives all commands a behavior consistent with other
Here is the behavior on tip of
The CL is intended to fix these discrepancies.