fix(check-extension): mirror path repos to prevent symlink errors with template files (#218)

Composer installs path repositories as symlinks by default, which causes Magento's template engine to fail when resolving .phtml files. Setting `COMPOSER_MIRROR_PATH_REPOS=1` on all composer install steps forces a copy instead, matching how the package would be installed from Packagist in production.

Adds a .phtml template and an integration test to the demo package that
renders it via Magento's template engine. Without COMPOSER_MIRROR_PATH_REPOS=1
the path repo is installed as a symlink and the test fails; with mirroring
it passes.

Closes #217
This commit is contained in:
Damien Retzinger
2026-04-26 23:05:21 -04:00
committed by GitHub
parent d5c744e155
commit d80befbe9b
4 changed files with 30 additions and 0 deletions
@@ -0,0 +1,2 @@
<?php /** @var \Magento\Framework\View\Element\Template $block */ ?>
<div>demo</div>