-
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 -m all' doesn't diagnose conflicts in non-imported packages #41652
Comments
The package namespace and module namespace are related, but not quite the same. The The general solution is to give the |
go list -mod mod -m all
don't return the same module list actual used when building or vendering
what |
The |
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.) |
Currently vgo2nix is using
go list -mod mod -json -m all
to find out all the dependencies of current project, but we find this command will output conflicts modules.A simple example:
These too dependencies are in conflict, but not imported by code, so
go build
andgo mod vendor
runs just fine.But
go list -mod mod -m all
will list them both.Is it considered an issue of
go list
, or is there a command to serve our purpose?The text was updated successfully, but these errors were encountered: