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

Commit 1906a27

Browse files
committed
change ProjectRoot Validation warning message
1 parent 484fc6a commit 1906a27

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

manifest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func ValidateProjectRoots(c *Ctx, m *Manifest, sm gps.SourceManager) error {
172172
return errors.Wrapf(err, "could not deduce project root for %s", pr)
173173
}
174174
if origPR != pr {
175-
c.Err.Printf("dep: WARNING: name %q in Gopkg.toml should be project root", pr)
175+
c.Err.Printf("dep: WARNING: the name for %q in Gopkg.toml should be changed to %q", pr, origPR)
176176
}
177177
}
178178

manifest_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,9 @@ func TestValidateProjectRoots(t *testing.T) {
426426
},
427427
wantError: false,
428428
wantWarn: []string{
429-
"name \"github.com/golang/dep/foo\" in Gopkg.toml should be project root",
430-
"name \"github.com/golang/mock/bar\" in Gopkg.toml should be project root",
431-
"name \"github.com/golang/go/xyz\" in Gopkg.toml should be project root",
429+
"the name for \"github.com/golang/dep/foo\" in Gopkg.toml should be changed to \"github.com/golang/dep\"",
430+
"the name for \"github.com/golang/mock/bar\" in Gopkg.toml should be changed to \"github.com/golang/mock\"",
431+
"the name for \"github.com/golang/go/xyz\" in Gopkg.toml should be changed to \"github.com/golang/go\"",
432432
},
433433
},
434434
{

0 commit comments

Comments
 (0)