From 00d450cce712827ac1da72aae1ac2bdded01b679 Mon Sep 17 00:00:00 2001 From: Katrina Verey Date: Tue, 7 Feb 2023 19:47:21 -0500 Subject: [PATCH] Revert plugin exclusion to name sanity check --- cmd/gorepomod/internal/repo/dotgitdata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())