问题
I want to get a list of tarball URLs (or similar) of all dependencies in a Go project. I tried to achieve this with 'go list dependency' but I see no possibility to get the source URL of a dependency. How can I get the URL?
回答1:
For the current directory you get the imports by:
go list -f '{{join .Imports "\n"}}' .
来源:https://stackoverflow.com/questions/33414849/list-of-dependency-urls-of-a-go-project