We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
slices.Concat
bazelPaths
1 parent 040a288 commit 020eb4aCopy full SHA for 020eb4a
go/extractor/project/project.go
@@ -471,8 +471,10 @@ func getBuildRoots(emitDiagnostics bool) (goWorkspaces []GoWorkspace, totalModul
471
472
// Finds Go workspaces in the current working directory.
473
func GetWorkspaceInfo(emitDiagnostics bool) []GoWorkspace {
474
- bazelPaths := util.FindAllFilesWithName(".", "BUILD", "vendor")
475
- bazelPaths = append(bazelPaths, util.FindAllFilesWithName(".", "BUILD.bazel", "vendor")...)
+ bazelPaths := slices.Concat(
+ util.FindAllFilesWithName(".", "BUILD", "vendor"),
476
+ util.FindAllFilesWithName(".", "BUILD.bazel", "vendor"),
477
+ )
478
if len(bazelPaths) > 0 {
479
// currently not supported
480
if emitDiagnostics {
0 commit comments