Skip to content

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

Open
damienwebdev wants to merge 2 commits intomainfrom
fix-template-symlinks
Open

fix(check-extension): mirror path repos to prevent symlink errors with template files#218
damienwebdev wants to merge 2 commits intomainfrom
fix-template-symlinks

Conversation

@damienwebdev
Copy link
Copy Markdown
Member

@damienwebdev damienwebdev commented Apr 23, 2026

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Composer installs path repositories as symlinks by default

Fixes: #217

What is the new behavior?

Composer installs path repositories as copied files

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

…h template files

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 three composer install steps
(unit-test, compile, integration) forces a copy instead, matching how
the package would be installed from Packagist in production.

Fixes #217
… errors

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] error "template-name.phtml cannot be used with directory" due to symlink install

1 participant