@@ -184,12 +184,12 @@ func RemoveTemporaryExtractorFiles() {
184
184
185
185
// Find all go.work files in the working directory and its subdirectories
186
186
func findGoWorkFiles () []string {
187
- return util .FindAllFilesWithName ("." , "go.work" , "vendor" )
187
+ return util .FindAllFilesWithName ("." , "go.work" , util . SkipVendorChecks ... )
188
188
}
189
189
190
190
// Find all go.mod files in the specified directory and its subdirectories
191
191
func findGoModFiles (root string ) []string {
192
- return util .FindAllFilesWithName (root , "go.mod" , "vendor" )
192
+ return util .FindAllFilesWithName (root , "go.mod" , util . SkipVendorChecks ... )
193
193
}
194
194
195
195
// A regular expression for the Go toolchain version syntax.
@@ -547,8 +547,8 @@ func startsWithAnyOf(str string, prefixes []string) bool {
547
547
// Finds Go workspaces in the current working directory.
548
548
func GetWorkspaceInfo (emitDiagnostics bool ) []GoWorkspace {
549
549
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 ... ),
552
552
)
553
553
if len (bazelPaths ) > 0 {
554
554
// currently not supported
0 commit comments