Skip to content

Commit

Permalink
Fix bazel query to use exact match
Browse files Browse the repository at this point in the history
  • Loading branch information
bstoll committed Jun 3, 2024
1 parent 7942e2b commit a8f8b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/proto_breaking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
extract_protodesc() {
local TMPTARGETDIR="${1}"
local TARGETS="$(bazel query 'attr("generator_function", "proto_library", "//...")' 2>/dev/null)"
local TARGETS="$(bazel query 'attr("generator_function", "^proto_library$", "//...")' 2>/dev/null)"
local GENF="$(bazel info bazel-genfiles)"
for TARGET in ${TARGETS}; do
local TARGETDIR="$(echo "${TARGET}" | cut -d ":" -f1 | sed 's#^//##')"
Expand All @@ -62,7 +62,7 @@ jobs:
extract_protodesc "${TMPDIRHEAD}"
git checkout "${BASE}"
bazel clean
BASETARGETS="$(bazel query 'attr("generator_function", "proto_library", "//...")' 2>/dev/null)"
BASETARGETS="$(bazel query 'attr("generator_function", "^proto_library$", "//...")' 2>/dev/null)"
extract_protodesc "${TMPDIRBASE}"
ERROR=false
Expand Down

0 comments on commit a8f8b9a

Please sign in to comment.