1

As part of a build process, I would like to git clone Go dependencies manually so I can specify --depth 1, among other things.

Is there a way for go get (or a similar tool) to output a list of Git dependencies for a Go project but not actually fetch them?

obeattie
  • 3,264
  • 2
  • 31
  • 36
  • 2
    Not really. If you don't fetch them, how would the `go` tool tell what other packages do the _not-fetched-packages_ refer to? The packages need to be fetched in order to analyze them to tell what other packages needed (recursively). – icza Jun 16 '16 at 07:27
  • 2
    try `go list -f {{.Deps}}` – RoninDev Jun 16 '16 at 07:28
  • 2
    Related: [How to list installed go packages](http://stackoverflow.com/questions/28166249/how-to-list-installed-go-packages) (it also answers how to list dependencies). – icza Jun 16 '16 at 07:41

0 Answers0