-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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 resolve or record modules that are not relevant to the requested output fields #29869
Comments
Related #29452. I think we need to make a decision on what side effects I believe this is currently working as designed. |
@jayconrod is it the same issue, though? Note that @rogpeppe had the module in question already as a requirement, since |
@mvdan I think it's the same issue. The main module depends on the package
|
Hmm, this isn't quite the same as #26977 either: in this case, the package in question is already in an active module, but that module's dependencies have not been resolved.
|
On further consideration, I think this is more-or-less a duplicate of #29666. In contrast, if you had asked for any substantial information about the dependencies of |
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?
Here is a script that illustrates the issue (reproduce by saving contents to a file and running the testscript command on it (
go get github.com/rogpeppe/go-internal/cmd/testscript
)I would not expect
go list
to add dependencies that aren't actually used by the code togo.mod
.The text was updated successfully, but these errors were encountered: