mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Add support for relative paths in handling of install-path for the installed.json
This commit is contained in:
parent
1b1d59ee6c
commit
6e45a53e76
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class FilesystemRepository extends WritableArrayRepository
|
|||
foreach ($this->getCanonicalPackages() as $package) {
|
||||
$pkgArray = $dumper->dump($package);
|
||||
$path = $installationManager->getInstallPath($package);
|
||||
$pkgArray['install-path'] = ('' !== $path && null !== $path) ? $fs->findShortestPath($repoDir, $path, true) : null;
|
||||
$pkgArray['install-path'] = ('' !== $path && null !== $path) ? $fs->findShortestPath($repoDir, $fs->isAbsolutePath($path) ? $path : getcwd() . '/' . $path, true) : null;
|
||||
$data['packages'][] = $pkgArray;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue