diff --git a/cmd/gorepomod/internal/repo/dotgitdata.go b/cmd/gorepomod/internal/repo/dotgitdata.go index 157753964..1206ff37a 100644 --- a/cmd/gorepomod/internal/repo/dotgitdata.go +++ b/cmd/gorepomod/internal/repo/dotgitdata.go @@ -127,7 +127,7 @@ func (dg *DotGitData) checkModules(modules []*protoModule) error { } } else { // Do the relative path and short name make sense? - if !strings.HasPrefix(string(shortName), "plugin/") && !strings.HasSuffix(pm.PathToGoMod(), string(shortName)) { + if !strings.HasSuffix(pm.PathToGoMod(), string(shortName)) { return fmt.Errorf( "in %q, the module name %q doesn't match the file's pathToGoMod %q", file, shortName, pm.PathToGoMod())