Skip to content
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: direct dependencies may be marked indirect #70615

Open
reverse-direction-god opened this issue Nov 29, 2024 · 2 comments
Open

cmd/go: direct dependencies may be marked indirect #70615

reverse-direction-god opened this issue Nov 29, 2024 · 2 comments
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@reverse-direction-god
Copy link

Go version

go 1.23.2

Output of go env in your module/workspace:

google.golang.org/grpc cloud.google.com/go@v0.26.0
google.golang.org/grpc github.com/client9/misspell@v0.3.4
google.golang.org/grpc github.com/golang/glog@v0.0.0-20160126235308-23def4e6c14b
google.golang.org/grpc github.com/golang/lint@v0.0.0-20180702182130-06c8688daad7
google.golang.org/grpc github.com/golang/mock@v1.1.1
google.golang.org/grpc github.com/golang/protobuf@v1.2.0
google.golang.org/grpc github.com/kisielk/gotool@v1.0.0
google.golang.org/grpc go@1.23.2
google.golang.org/grpc golang.org/x/lint@v0.0.0-20180702182130-06c8688daad7
google.golang.org/grpc golang.org/x/net@v0.0.0-20180826012351-8a410e7b638d
google.golang.org/grpc golang.org/x/oauth2@v0.0.0-20180821212333-d2e6202438be
google.golang.org/grpc golang.org/x/sync@v0.0.0-20180314180146-1d60e4601c6f
google.golang.org/grpc golang.org/x/sys@v0.0.0-20180830151530-49385e6e1522
google.golang.org/grpc golang.org/x/text@v0.3.0
google.golang.org/grpc golang.org/x/tools@v0.0.0-20180828015842-6cd1fcedba52
google.golang.org/grpc google.golang.org/appengine@v1.1.0
google.golang.org/grpc google.golang.org/genproto@v0.0.0-20180817151627-c66870c02cf8
google.golang.org/grpc honnef.co/go/tools@v0.0.0-20180728063816-88497007e858

What did you do?

I hope to obtain the dependency tree of the go project using the go mod graph command. You can see some direct dependencies output by this command compared to the information in go.mod. Some of the dependencies in go.mod that have//direct annotations are considered direct dependencies in the output information of the go mod graph command

What did you see happen?

Some indirect dependencies in the go.mod file are considered direct dependencies after the output of the go mod graph

What did you expect to see?

At present, the go mod graph command cannot accurately display the dependency tree

@seankhliao seankhliao changed the title The recognition of indirect dependency errors in the dependency tree output by the go mod graph command as direct dependencies cmd/go: direct dependencies may be marked indirect Nov 29, 2024
@seankhliao
Copy link
Member

please include an actual reproducer.

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants