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\"", }, }, {