Skip to content

Commit a369447

Browse files
Fix comm usage on macOS 15.4 (#3161)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
1 parent 61d11ec commit a369447

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

xcodeproj/internal/templates/bazel_build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,12 @@ if [[ -n "${target_ids:-}" ]]; then
137137
exit 1
138138
fi
139139

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

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

0 commit comments

Comments
 (0)