-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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: 1.16 changes 'go list -m all' behavior #44238
Comments
I think this is because |
This is an expected consequence of #40728. There are several ways to mitigate it:
(CC @jayconrod @matloob) |
@qbit: taking the above options into account, do you have a specific workflow that this workflow makes awkward or difficult? (If so, we can look for other mitigations — or perhaps other changes to |
In my case adding For context, this is for the OpenBSD portgen utility, which builds a port (think software packaging) of go tools. I am using Thanks for the info! |
Thanks! In that case, I'm going to close this as “worked as proposed in #40728”, but please do let us know if you run into other cases that can't easily be fixed. |
What version of Go are you using (
go version
)?1.16rc1
Does this issue reproduce with the latest release?
In versions <= 1.15 one was able to download a packages
go.mod
file and usego list -m all
to print a full set of dependencies. Allbeta
andrc
versions of 1.16 have suffered from this issue.What operating system and processor architecture are you using (
go env
)?Confirmed on
darwin/arm64
andopenbsd/amd64,arm65
What did you do?
What did you expect to see?
What did you see instead?
Adding
-mod=mod
makesgo list -m all
produce the expected output.The text was updated successfully, but these errors were encountered: