@devries-cameron20 / composio Mirror · read-only / commits / 5d007da22
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 21, 17:15 UTC

fix(ci): accept the legacy PATH block when verifying installed shell config

The shell-config assertions only passed for binaries that write the new CLI-managed PATH line, but every leg of this workflow installs a published release binary: workflow_dispatch re-verification of existing releases, workflow_call with the default 'latest', and promote-stable rebuilds of an older beta all install pre-change binaries that write the legacy COMPOSIO_INSTALL_DIR block (as does install.sh's own fallback). Accept either working PATH layout, fail only when neither is present, and keep rejecting a mixed state where the new PATH line coexists with a persisted COMPOSIO_INSTALL_DIR.

jkomyno committed Aug 3, 2026 at 20:24 UTC 5d007da225af4eaa1a2db22e27f62b0bd0d78886
1 file changed +17 -8
.github/workflows/cli.test-installation.yml
+17 -8
@@ -352,8 +352,24 @@ jobs:
352 exit 1
353 fi
354
355 + # Every leg of this workflow installs a published release binary, never one
356 + # built from this checkout: releases predating the CLI-managed PATH line
357 + # (workflow_dispatch re-verification, workflow_call with the default
358 + # 'latest', promote-stable rebuilds of an older beta) still write the
359 + # legacy install.sh block with COMPOSIO_INSTALL_DIR, as does install.sh's
360 + # fallback when the binary cannot run. Accept either working layout and
361 + # fail only when neither PATH setup is present.
362 if grep -Fqx 'export PATH="$HOME/.composio:$PATH"' "$config_file"; then
356 - echo "✅ $config_file updated with the installed binary directory"
363 + if grep -q 'COMPOSIO_INSTALL_DIR' "$config_file"; then
364 + echo "❌ $config_file has the CLI-managed PATH line but still persists COMPOSIO_INSTALL_DIR"
365 + echo "=== $config_file contents ==="
366 + cat "$config_file"
367 + exit 1
368 + fi
369 + echo "✅ $config_file updated with the CLI-managed PATH line"
370 + elif grep -Fqx 'export PATH="$COMPOSIO_INSTALL_DIR:$PATH"' "$config_file" &&
371 + grep -Eq '^export COMPOSIO_INSTALL_DIR=' "$config_file"; then
372 + echo "✅ $config_file updated with the legacy install.sh PATH block"
373 else
374 echo "❌ $config_file PATH not updated"
375 echo "=== $config_file contents ==="
@@ -361,13 +377,6 @@ jobs:
377 exit 1
378 fi
379
364 - if grep -q 'COMPOSIO_INSTALL_DIR' "$config_file"; then
365 - echo "❌ $config_file still persists COMPOSIO_INSTALL_DIR"
366 - echo "=== $config_file contents ==="
367 - cat "$config_file"
368 - exit 1
369 - fi
370 -
380 - name: Test custom install directory
381 shell: bash
382 env: