Failed when analyzing dependencies with problem about `can't load package`
Closed this issue · 1 comments
straightdave commented
I use go list -f '{{join .Imports "\n"}}' | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
to analyze the non-standard packages used in deps analyzing process.
However it fails sometime: at least at this time it met an unknown package github.com/gogo/protobuf/gogoproto.
After I installed this package manually (thru go get
), go-list command worked again.
So I doubt the go-list has flaws in this way or I SHOULD NOT use go-list to analyze deps in the first place.
straightdave commented
fixed by using Lesphina to analyze deps.