-
-
Notifications
You must be signed in to change notification settings - Fork 404
Closed
Milestone
Description
There's an inconsistency to composer regarding getInstallPath():
Composer returns the absolute path while the composer installers only return the relative path:
https://github.com/composer/installers/blob/master/src/Composer/Installers/BaseInstaller.php#L36
Thus, this code fails because symlink links to a non-existing directory:
$repository = $event->getComposer()->getRepositoryManager();
$t3package = $repository->findPackage( 'aimeos/aimeos-typo3', '*' );
$package = $repository->findPackage( 'aimeos/ai-typo3', '*' );
$t3path = $installer->getInstallPath( $t3package );
$path = dirname( $installer->getInstallPath( $package ) );
symlink( $path, $t3path . '/Resources/Private/Extensions' );
$t3path is absolute as expected, but $path is relative (e.g. "ext" instead of "/path/to/ext")
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels