From 5456c4e3d89535c99057824e108c10978ec492b5 Mon Sep 17 00:00:00 2001 From: mstrong Date: Mon, 30 Jan 2017 23:27:09 -0500 Subject: [PATCH] Renaming func and altering output to user --- cmd/dep/init.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/dep/init.go b/cmd/dep/init.go index 6c749b90e3..f7f80c7d3d 100644 --- a/cmd/dep/init.go +++ b/cmd/dep/init.go @@ -239,10 +239,10 @@ 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 := "Fetched latest of" + syncDep := func(pr gps.ProjectRoot, sm *gps.SourceMgr) { + message := "Cached" if err := sm.SyncSourceFor(gps.ProjectIdentifier{ProjectRoot: pr}); err != nil { - message = "Unable to fetch latest of" + message = "Unable to cache" } fmt.Fprintf(os.Stderr, "%s %s\n", message, pr) } @@ -276,7 +276,7 @@ func getProjectData(ctx *dep.Ctx, pkgT gps.PackageTree, cpr string, sm *gps.Sour continue } - go printNewDep(pr, sm) + go syncDep(pr, sm) vlogf("Package %q has import %q, analyzing...", v.P.ImportPath, ip) @@ -375,7 +375,7 @@ func getProjectData(ctx *dep.Ctx, pkgT gps.PackageTree, cpr string, sm *gps.Sour } } else { dependencies[pr] = []string{pkg} - go printNewDep(pr, sm) + go syncDep(pr, sm) } // project must be on disk at this point; question is