@@ -184,12 +184,12 @@ func RemoveTemporaryExtractorFiles() {
184184
185185// Find all go.work files in the working directory and its subdirectories
186186func findGoWorkFiles () []string {
187- return util .FindAllFilesWithName ("." , "go.work" , "vendor" )
187+ return util .FindAllFilesWithName ("." , "go.work" , util . SkipVendorChecks ... )
188188}
189189
190190// Find all go.mod files in the specified directory and its subdirectories
191191func findGoModFiles (root string ) []string {
192- return util .FindAllFilesWithName (root , "go.mod" , "vendor" )
192+ return util .FindAllFilesWithName (root , "go.mod" , util . SkipVendorChecks ... )
193193}
194194
195195// A regular expression for the Go toolchain version syntax.
@@ -547,8 +547,8 @@ func startsWithAnyOf(str string, prefixes []string) bool {
547547// Finds Go workspaces in the current working directory.
548548func GetWorkspaceInfo (emitDiagnostics bool ) []GoWorkspace {
549549 bazelPaths := slices .Concat (
550- util .FindAllFilesWithName ("." , "BUILD" , "vendor" ),
551- util .FindAllFilesWithName ("." , "BUILD.bazel" , "vendor" ),
550+ util .FindAllFilesWithName ("." , "BUILD" , util . SkipVendorChecks ... ),
551+ util .FindAllFilesWithName ("." , "BUILD.bazel" , util . SkipVendorChecks ... ),
552552 )
553553 if len (bazelPaths ) > 0 {
554554 // currently not supported
0 commit comments