Fix dependancy graphs to work with Go Modules
jscharber opened this issue · comments
John Scharber commented
This broken when we moved from dep to mods
John Scharber commented
This has two parts
-1 roadctl has been converted
For roadctl, godepgraph seems to work. I requires a list of exception for libraries that do not support go modules yet.
-p ignores entire prefixes, in this case hashicorp seems a lager
-i ignores import paths
-s ignores standard libraries
$ go get github.com/kisielk/godepgraph
$ godepgraph -s -i github.com/spf13/afero,github.com/google/go-querystring/query -p github.com/hashicorp . | dot -Tpng -o godepgraph.png
-2 templates are still using dep
Can use existing make file code