Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion xcodeproj/internal/templates/bazel_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ if [[ -n "${target_ids:-}" ]]; then
exit 1
fi

diff_output=$(comm -23 <(printf '%s\n' "${target_ids[@]}") "%target_ids_list%")
# We need to sort the inputs for `comm` to work on macOS 15.4+
diff_output=$(
comm -23 \
<(printf '%s\n' "${target_ids[@]}" | sort) \
<(sort "%target_ids_list%")
)

if [ -n "$diff_output" ]; then
missing_target_ids=("${diff_output[@]}")
Expand Down