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

[feature] go mod dependency tree #129

Open
hebingchang opened this issue Apr 4, 2020 · 6 comments
Open

[feature] go mod dependency tree #129

hebingchang opened this issue Apr 4, 2020 · 6 comments

Comments

@hebingchang
Copy link
Member

No description provided.

@at15
Copy link
Member

at15 commented Apr 4, 2020

@hebingchang can you put more detail and tools you have tried .w.

@at15
Copy link
Member

at15 commented Apr 4, 2020

Actually you can use golist with template https://dave.cheney.net/2014/09/14/go-list-your-swiss-army-knife

go list -f '{{ join .Deps "\n"}}' .

@hebingchang
Copy link
Member Author

@at15
Copy link
Member

at15 commented Apr 30, 2020

@at15
Copy link
Member

at15 commented May 20, 2020

@at15
Copy link
Member

at15 commented Aug 6, 2020

Also you can use the command go mod why -m github.com/foo/boar and it will prints the import order

$ go mod why -m github.com/pingcap/tipb
# github.com/pingcap/tipb
github.com/at15/gegecece/impl/gce4-go/parser/pingcap
github.com/pingcap/parser
github.com/pingcap/parser/model
github.com/pingcap/tipb/go-tipb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants