mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Keep absolute path repos symlinks absolute, fixes #8700
This commit is contained in:
parent
b11f1c3082
commit
7e679656a4
2 changed files with 11 additions and 2 deletions
|
@ -20,6 +20,7 @@ use Composer\Package\Version\VersionGuesser;
|
|||
use Composer\Package\Version\VersionParser;
|
||||
use Composer\Util\Platform;
|
||||
use Composer\Util\ProcessExecutor;
|
||||
use Composer\Util\Filesystem;
|
||||
|
||||
/**
|
||||
* This repository allows installing local packages that are not necessarily under their own VCS.
|
||||
|
@ -107,6 +108,10 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
|||
$this->versionGuesser = new VersionGuesser($config, $this->process, new VersionParser());
|
||||
$this->repoConfig = $repoConfig;
|
||||
$this->options = isset($repoConfig['options']) ? $repoConfig['options'] : array();
|
||||
if (!isset($this->options['relative'])) {
|
||||
$filesystem = new Filesystem();
|
||||
$this->options['relative'] = !$filesystem->isAbsolutePath($this->url);
|
||||
}
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue