Print the dependency key and value during describe

This commit is contained in:
joeduffy 2017-02-21 12:30:31 -08:00
parent dcb6c958b3
commit 85ba692832

View file

@ -144,8 +144,8 @@ func printPackage(pkg *pack.Package, printSymbols bool, printExports bool, print
fmt.Printf("%vdependencies [", tab)
if pkg.Dependencies != nil && len(*pkg.Dependencies) > 0 {
fmt.Printf("\n")
for _, dep := range *pkg.Dependencies {
fmt.Printf("%v\"%v\"\n", tab+tab, dep)
for _, dep := range pack.StableDependencies(*pkg.Dependencies) {
fmt.Printf("%v%v: \"%v\"\n", tab+tab, dep, (*pkg.Dependencies)[dep])
}
fmt.Printf("%v", tab)
}