标签: go dependency-management
我想获得Go项目中所有依赖项的tarball URL(或类似)列表。我尝试通过“列表依赖”来实现这一目标。但我认为没有可能获得依赖的源URL。我怎样才能获得网址?
答案 0 :(得分:3)
对于当前目录,您可以通过以下方式获得导入: go list -f '{{join .Imports "\n"}}' .
go list -f '{{join .Imports "\n"}}' .