Skip to content

Commit

Permalink
fix: respect the bazelignore directories when finding Bazel packages (#…
Browse files Browse the repository at this point in the history
…266)

We respect the bazelignore directories when looking for child
workspaces. This adds the same logic when looking for Bazel packages.

Related to #189.
  • Loading branch information
cgrindel authored Jan 8, 2024
1 parent bbc335a commit 3e6d059
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/find_child_workspace_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ find_bazel_pkgs() {
local path="${1}"
# Make sure that the -print0 is the last primary for find. Otherwise, you
# will get undesirable results.
find "${path}" \( -name BUILD -or -name BUILD.bazel \) -print0 | xargs -0 -n 1 dirname
while IFS=$'\n' read -r line; do filter_bazelignored_directories "${path}" "${line}" ; done < <(
find "${path}" \( -name BUILD -or -name BUILD.bazel \) -print0 | xargs -0 -n 1 dirname
)
}

# MARK - Main
Expand Down

0 comments on commit 3e6d059

Please sign in to comment.