Remove dev-master=>dev-main alias from #10372 as it does not work/is missing when reloading from lock file and extracting dev deps, refs #10651
parent
90571a8c9d
commit
2b99d069b2
|
@ -198,7 +198,6 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
||||||
$package['dist']['reference'] = trim($output);
|
$package['dist']['reference'] = trim($output);
|
||||||
}
|
}
|
||||||
|
|
||||||
$needsAlias = false;
|
|
||||||
if (!isset($package['version'])) {
|
if (!isset($package['version'])) {
|
||||||
$versionData = $this->versionGuesser->guessVersion($package, $path);
|
$versionData = $this->versionGuesser->guessVersion($package, $path);
|
||||||
if (is_array($versionData) && $versionData['pretty_version']) {
|
if (is_array($versionData) && $versionData['pretty_version']) {
|
||||||
|
@ -211,16 +210,10 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
|
||||||
$package['version'] = $versionData['pretty_version'];
|
$package['version'] = $versionData['pretty_version'];
|
||||||
} else {
|
} else {
|
||||||
$package['version'] = 'dev-main';
|
$package['version'] = 'dev-main';
|
||||||
$needsAlias = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$package = $this->loader->load($package);
|
$this->addPackage($this->loader->load($package));
|
||||||
if ($needsAlias && $package instanceof CompletePackage) {
|
|
||||||
// keep a dev-master alias to dev-main for BC
|
|
||||||
$package = new CompleteAliasPackage($package, 'dev-master', 'dev-master');
|
|
||||||
}
|
|
||||||
$this->addPackage($package);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue