-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: go mod graph
doesn't return an error in GOPATH mode
#31237
Comments
go mod graph
doesn't return an errorgo mod graph
doesn't return an error
go mod graph
doesn't return an errorgo mod graph
doesn't return an error in GOPATH mode
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 |
@iwdgo, the discrepancy between |
Change https://golang.org/cl/174697 mentions this issue: |
Here is the behavior on tip of
With
The CL is intended to fix these discrepancies. |
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?
go mod graph
What did you expect to see?
go: modules disabled inside GOPATH/src by GO111MODULE=auto; see 'go help modules'
What did you see instead?
Nothing. It just returned.
GO111MODULE=on go mod graph
works as expected.go mod tidy
returns the error above as expected.The text was updated successfully, but these errors were encountered: