Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Altering output text. Adding output for transitive dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
xmattstrongx committed Jan 30, 2017
1 parent c77d238 commit 7eac911
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/dep/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ func getProjectData(ctx *dep.Ctx, pkgT gps.PackageTree, cpr string, sm *gps.Sour
notondisk := make(map[gps.ProjectRoot]bool)
ondisk := make(map[gps.ProjectRoot]gps.Version)

printNewDeP := func(pr gps.ProjectRoot, sm *gps.SourceMgr) {
message := "Cloning"
printNewDep := func(pr gps.ProjectRoot, sm *gps.SourceMgr) {
message := "Fetched latest of"
if err := sm.SyncSourceFor(gps.ProjectIdentifier{ProjectRoot: pr}); err != nil {
message = "Unable to clone"
message = "Unable to fetch latest of"
}
fmt.Fprintf(os.Stderr, "%s: %s\n", message, pr)
fmt.Fprintf(os.Stderr, "%s %s\n", message, pr)
}

for _, v := range pkgT.Packages {
Expand Down Expand Up @@ -275,9 +275,8 @@ func getProjectData(ctx *dep.Ctx, pkgT gps.PackageTree, cpr string, sm *gps.Sour
}

continue
} else {
go printNewDeP(pr, sm)
}
go printNewDep(pr, sm)

vlogf("Package %q has import %q, analyzing...", v.P.ImportPath, ip)

Expand Down Expand Up @@ -376,6 +375,7 @@ func getProjectData(ctx *dep.Ctx, pkgT gps.PackageTree, cpr string, sm *gps.Sour
}
} else {
dependencies[pr] = []string{pkg}
go printNewDep(pr, sm)
}

// project must be on disk at this point; question is
Expand Down

0 comments on commit 7eac911

Please sign in to comment.