From f57a3b21bab305fa46b5edfa87864f54cb85801c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 23 Feb 2026 05:31:39 +0000 Subject: [PATCH] fix(ci): hard-code sister package clone instead of PHP parsing Direct git clone of ../php-framework avoids shell escaping issues with dynamic PHP-based path extraction. Co-Authored-By: Claude Opus 4.6 --- .forgejo/workflows/ci.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 588ae65..4beb00b 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -26,26 +26,15 @@ jobs: extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite coverage: pcov - - name: Checkout path dependencies + - name: Clone sister packages env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash run: | - php -r ' - $d = json_decode(file_get_contents("composer.json"), true); - foreach ($d["repositories"] ?? [] as $r) { - if (($r["type"] ?? "") === "path") echo $r["url"] . "\n"; - } - ' | while IFS= read -r path; do - [ -z "$path" ] && continue - dir_name=$(basename "$path") - if [ ! -d "$path" ]; then - echo "Cloning $dir_name into $path" - git clone --depth 1 \ - "https://x-access-token:${GITHUB_TOKEN}@forge.lthn.ai/core/${dir_name}.git" \ - "$path" || echo "Warning: Failed to clone $dir_name" - fi - done + echo "Cloning php-framework into ../php-framework" + git clone --depth 1 \ + "https://x-access-token:${GITHUB_TOKEN}@forge.lthn.ai/core/php-framework.git" \ + ../php-framework + ls -la ../php-framework/composer.json - name: Install dependencies run: composer install --prefer-dist --no-interaction --no-progress