Skip to content

Commit a0f470b

Browse files
committed
Change bazel check to look in subdirs
1 parent 193edda commit a0f470b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

go/extractor/diagnostics/diagnostics.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,15 @@ func EmitRelativeImportPaths() {
203203

204204
// The following diagnostics are telemetry-only.
205205

206-
func EmitBazelBuildFileFound() {
206+
func EmitBazelBuildFilesFound(bazelPaths []string) {
207207
emitDiagnostic(
208208
"go/autobuilder/bazel-build-file-found",
209-
"A Bazel `BUILD` file was found",
210-
"A Bazel `BUILD` file was found",
209+
"Bazel BUILD files were found",
210+
fmt.Sprintf(
211+
"%d bazel BUILD %s found:\n\n`%s`",
212+
len(bazelPaths),
213+
plural(len(bazelPaths), "file was", "files were"),
214+
strings.Join(bazelPaths, "`, `")),
211215
severityNote,
212216
telemetryOnly,
213217
noLocation,

0 commit comments

Comments
 (0)