@devries-cameron20 / composio Mirror · read-only / commits / 7f1548bc1
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 00:45 UTC

fix: replace bash 4+ mapfile with POSIX-compatible shell in CI

macOS runners ship bash 3.2 which lacks mapfile, causing "command not found" failures in the bundled support files test. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Rahul Tarak committed Apr 7, 2026 at 21:30 UTC 7f1548bc1872b084cd67704cd3972ed3ddc129a5
1 file changed +15 -10
.github/workflows/cli.test-installation.yml
+15 -10
@@ -283,31 +283,36 @@ jobs:
283
284 curl --fail --silent --location --output "$tmpdir/$archive_name" "$archive_url"
285
286 - mapfile -t expected_paths < <(
286 + expected_paths="$(
287 unzip -Z1 "$tmpdir/$archive_name" \
288 | grep -v '/$' \
289 | sed "s#^composio-$target/##" \
290 | grep -v '^composio$' \
291 | sort
292 - )
292 + )"
293
294 - if [[ ${#expected_paths[@]} -eq 0 ]]; then
294 + if [ -z "$expected_paths" ]; then
295 echo "❌ No bundled support files found in $archive_name"
296 exit 1
297 fi
298
299 - missing_paths=()
300 - for relative_path in "${expected_paths[@]}"; do
301 - if [[ -f "$install_dir/$relative_path" ]]; then
299 + missing=""
300 + echo "$expected_paths" | while IFS= read -r relative_path; do
301 + if [ -f "$install_dir/$relative_path" ]; then
302 echo "✅ Found $relative_path"
303 else
304 - missing_paths+=("$relative_path")
304 + echo "MISSING:$relative_path"
305 fi
306 - done
306 + done > "$tmpdir/check_output"
307
308 - if [[ ${#missing_paths[@]} -gt 0 ]]; then
308 + cat "$tmpdir/check_output" | grep -v '^MISSING:' || true
309 +
310 + missing="$(grep '^MISSING:' "$tmpdir/check_output" | sed 's/^MISSING://' || true)"
311 + if [ -n "$missing" ]; then
312 printf '❌ Missing bundled support files after install:\n' >&2
310 - printf ' %s\n' "${missing_paths[@]}" >&2
313 + echo "$missing" | while IFS= read -r p; do
314 + printf ' %s\n' "$p" >&2
315 + done
316 exit 1
317 fi
318