Skip to content

Commit

Permalink
Fix: Silence false positive "No such target" errors for files in the …
Browse files Browse the repository at this point in the history
…project root

In these cases, bazel reports an error with empty (`''`) package

Follow up of bazelbuild#6262
  • Loading branch information
tpasternak committed Apr 8, 2024
1 parent 54c67f9 commit 4a0b969
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ static class GenericErrorParser extends SingleLineParser {
"(" + BAZEL_BUILD_FILES_PATTERN + ":[0-9]+:[0-9]+: Couldn't build file .*)");

private static final ImmutableList<String> QUERY_PATTERNS = ImmutableList.of(
"(Skipping '//.+': no such target '//.+': target '.*' not declared in package '.+' defined by .+)",
"(Skipping '//.+': no such target '//.+': target '.*' not declared in package '.*' defined by .+)",
"(Skipping '//.+': no targets found beneath '.+')"
);

Expand Down

0 comments on commit 4a0b969

Please sign in to comment.