Re: [go-nuts] tool to print dependency graph of /vendor libs

2016-09-14 Thread Tong Sun
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

Re: [go-nuts] tool to print dependency graph of /vendor libs

2016-09-02 Thread Davis Ford
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 -> %

Re: [go-nuts] tool to print dependency graph of /vendor libs

2016-09-02 Thread Sam Whited
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

[go-nuts] tool to print dependency graph of /vendor libs

2016-09-02 Thread Davis Ford
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