diff options
Diffstat (limited to 'dependencies/analyses/dependency-tree.sh')
-rwxr-xr-x | dependencies/analyses/dependency-tree.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dependencies/analyses/dependency-tree.sh b/dependencies/analyses/dependency-tree.sh index 3c9dccc51..9a2e3282d 100755 --- a/dependencies/analyses/dependency-tree.sh +++ b/dependencies/analyses/dependency-tree.sh @@ -10,4 +10,11 @@ DATA=$(go list $1/... \ | awk '{ printf "%s\n\n", $0 }' \ ) -echo "$DATA" +echo "$DATA" > direct-tree.txt + +DATA=$(go list $1/... \ + | xargs -d '\n' go list -f '{{ .ImportPath }}: {{ join .Deps ", " }}' \ + | awk '{ printf "%s\n\n", $0 }' \ + ) + +echo "$DATA" > transitive-tree.txt |