Skip to content

Commit d633b39

Browse files
committed
Clean root vendor after build-packages to avoid circular symlinks
The build-packages.php script updates composer.json files to use path repositories, which create symlinks. When a platform bridge depends on symfony/ai-platform, the symlink points to src/platform which contains the bridges themselves, creating recursive symlinks that cause "Too many levels of symbolic links" errors in PHPStan. By removing the root vendor directory after build-packages.php runs, we ensure the symlinks don't cause issues when installing bridge dependencies. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 2c7b71a commit d633b39

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/code-quality.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ jobs:
182182
if: matrix.bridge.component == 'platform'
183183
run: php .github/build-packages.php
184184

185+
# Remove root vendor to avoid circular symlinks when installing bridge dependencies
186+
- name: Clean root vendor (platform bridges only)
187+
if: matrix.bridge.component == 'platform'
188+
run: rm -rf vendor
189+
185190
- name: Install dependencies
186191
uses: ramsey/composer-install@v3
187192
with:

.github/workflows/unit-tests.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ jobs:
303303
- name: Build packages
304304
run: php .github/build-packages.php
305305

306+
# Remove root vendor to avoid circular symlinks when installing bridge dependencies
307+
- name: Clean root vendor
308+
run: rm -rf vendor
309+
306310
- name: Install dependencies
307311
uses: ramsey/composer-install@v3
308312
with:

0 commit comments

Comments
 (0)