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

Commit

Permalink
change ProjectRoot Validation warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
darkowlzz committed Sep 4, 2017
1 parent a7591c0 commit 9a78083
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
6 changes: 3 additions & 3 deletions manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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\"",
},
},
{
Expand Down

0 comments on commit 9a78083

Please sign in to comment.