-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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 list should not add a dependency to go.mod #37197
Comments
Change https://golang.org/cl/219237 mentions this issue: |
… 'go list' Discovered while investigating #37197. Updates #33326 Updates #34822 Change-Id: I38b136a4ee762a580a554125066b9778491295f2 Reviewed-on: https://go-review.googlesource.com/c/go/+/219237 Run-TryBot: Bryan C. Mills <[email protected]> Reviewed-by: Michael Matloob <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
This is closely related to #28692 and #26977, and somewhat more distantly related to #29869. But the use case here is a bit different from #28692: in that issue, the package mentioned on the command line is in a module already present in the module graph, and And this use case is also a bit different from #26977: there, Note that
Given that, this seems like a usability question — is it better for |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Possibly related to #36812
Re-open of #28014 which was not a duplicate of 27643
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?
What did you expect to see?
I expected to see if the package argument to
go list
was present in my go environment. No file writes.What did you see instead?
I saw that the package argument to
go list
was present, but I also saw an intrusive update to mygo.mod
.The text was updated successfully, but these errors were encountered: