Skip to content
Snippets Groups Projects
Commit 95b81e3c authored by Adam G-H's avatar Adam G-H
Browse files

Issue #3387379 by phenaproxima: Document why use COMPOSER_MIRROR_PATH_REPOS in build tests

parent 7b6b9601
No related branches found
No related tags found
No related merge requests found
...@@ -314,6 +314,14 @@ END; ...@@ -314,6 +314,14 @@ END;
'type' => 'path', 'type' => 'path',
'url' => $template_dir, 'url' => $template_dir,
]; ];
// The COMPOSER_MIRROR_PATH_REPOS environment variable is necessary because
// the vendor packages are installed from a Composer-type repository, which
// will normally try to symlink packages which are installed from local
// directories. This breaks Package Manager, because it does not support
// symlinks pointing outside the main code base. The
// COMPOSER_MIRROR_PATH_REPOS environment variable forces Composer to
// mirror, rather than symlink, local directories during during package
// installation.
$command = sprintf( $command = sprintf(
"COMPOSER_MIRROR_PATH_REPOS=1 composer create-project %s project --stability dev --repository '%s'", "COMPOSER_MIRROR_PATH_REPOS=1 composer create-project %s project --stability dev --repository '%s'",
$this->runComposer('composer config name', $template_dir), $this->runComposer('composer config name', $template_dir),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment