From 9a78083ac90052a61d4361fea6560065fbb25dc2 Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 4 Sep 2017 19:13:48 +0530 Subject: [PATCH] change ProjectRoot Validation warning message --- manifest.go | 2 +- manifest_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.go b/manifest.go index 74a64da273..f63b67a490 100644 --- a/manifest.go +++ b/manifest.go @@ -172,7 +172,7 @@ func ValidateProjectRoots(c *Ctx, m *Manifest, sm gps.SourceManager) error { return errors.Wrapf(err, "could not deduce project root for %s", pr) } if origPR != pr { - c.Err.Printf("dep: WARNING: name %q in Gopkg.toml should be project root", pr) + c.Err.Printf("dep: WARNING: the name for %q in Gopkg.toml should be changed to %q", pr, origPR) } } diff --git a/manifest_test.go b/manifest_test.go index f206db8b82..227f511558 100644 --- a/manifest_test.go +++ b/manifest_test.go @@ -426,9 +426,9 @@ func TestValidateProjectRoots(t *testing.T) { }, wantError: false, wantWarn: []string{ - "name \"github.com/golang/dep/foo\" in Gopkg.toml should be project root", - "name \"github.com/golang/mock/bar\" in Gopkg.toml should be project root", - "name \"github.com/golang/go/xyz\" in Gopkg.toml should be project root", + "the name for \"github.com/golang/dep/foo\" in Gopkg.toml should be changed to \"github.com/golang/dep\"", + "the name for \"github.com/golang/mock/bar\" in Gopkg.toml should be changed to \"github.com/golang/mock\"", + "the name for \"github.com/golang/go/xyz\" in Gopkg.toml should be changed to \"github.com/golang/go\"", }, }, {