I'll use a concrete example. Substitute with your own.
GOPACKAGE=github.com/mkideal/cli
{ echo "digraph G {"; go list -f '{{ range .Imports }}{{printf "\t%q ->
%q;\n" $.ImportPath .}}{{end}}' $(go list -f '{{join .Deps " "}}'
$GOPACKAGE) $GOPACKAGE | grep '/.*" -> ".*/'; echo "}"; } | dot -Tsvg
Daniel, fwiw I couldn't get govendor list to work in my environment.
Sam, thanks a lot of that snippet. I also had some trouble running that,
but I was able to reverse engineer the important parts out to generate a
one-liner that worked for me.
go list -f '{{ range .Imports }}{{printf "\t%q -> %
On Fri, Sep 2, 2016 at 1:20 PM, Davis Ford wrote:
> Does anyone know of a tool that can analyze dependencies and print a graph,
> specifically as it relates to golang vendor'd libraries. I'm using 1.7 and
> most tools don't seem to be able to produce results on a project that is
> using vendor'd
Hi,
Does anyone know of a tool that can analyze dependencies and print a graph,
specifically as it relates to golang vendor'd libraries. I'm using 1.7 and
most tools don't seem to be able to produce results on a project that is
using vendor'd dependencies.
Tools I've tried:
- https://git