Merge branch '1.2'
commit
9c8617cd33
|
@ -316,12 +316,12 @@ Example:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note:** While this is convenient at times, it should not be how you use
|
> **Note:** This feature has severe technical limitations, as the
|
||||||
> packages in the long term because it comes with a technical limitation. The
|
|
||||||
> composer.json metadata will still be read from the branch name you specify
|
> composer.json metadata will still be read from the branch name you specify
|
||||||
> before the hash. Because of that in some cases it will not be a practical
|
> before the hash. You should therefore only use this as a temporary solution
|
||||||
> workaround, and you should always try to switch to tagged releases as soon
|
> during development to remediate transient issues, until you can switch to
|
||||||
> as you can.
|
> tagged releases. The Composer team does not actively support this feature
|
||||||
|
> and will not accept bug reports related to it.
|
||||||
|
|
||||||
It is also possible to inline-alias a package constraint so that it matches
|
It is also possible to inline-alias a package constraint so that it matches
|
||||||
a constraint that it otherwise would not. For more information [see the
|
a constraint that it otherwise would not. For more information [see the
|
||||||
|
|
|
@ -179,7 +179,7 @@ EOT
|
||||||
if ($input->getOption('latest')) {
|
if ($input->getOption('latest')) {
|
||||||
$latestPackage = $this->findLatestPackage($package, $composer, $phpVersion);
|
$latestPackage = $this->findLatestPackage($package, $composer, $phpVersion);
|
||||||
}
|
}
|
||||||
$this->printMeta($package, $versions, $installedRepo, $latestPackage);
|
$this->printMeta($package, $versions, $installedRepo, $latestPackage ?: null);
|
||||||
$this->printLinks($package, 'requires');
|
$this->printLinks($package, 'requires');
|
||||||
$this->printLinks($package, 'devRequires', 'requires (dev)');
|
$this->printLinks($package, 'devRequires', 'requires (dev)');
|
||||||
if ($package->getSuggests()) {
|
if ($package->getSuggests()) {
|
||||||
|
|
|
@ -459,7 +459,6 @@ class Installer
|
||||||
$solver = new Solver($policy, $pool, $installedRepo, $this->io);
|
$solver = new Solver($policy, $pool, $installedRepo, $this->io);
|
||||||
try {
|
try {
|
||||||
$operations = $solver->solve($request, $this->ignorePlatformReqs);
|
$operations = $solver->solve($request, $this->ignorePlatformReqs);
|
||||||
$this->eventDispatcher->dispatchInstallerEvent(InstallerEvents::POST_DEPENDENCIES_SOLVING, $this->devMode, $policy, $pool, $installedRepo, $request, $operations);
|
|
||||||
} catch (SolverProblemsException $e) {
|
} catch (SolverProblemsException $e) {
|
||||||
$this->io->writeError('<error>Your requirements could not be resolved to an installable set of packages.</error>', true, IOInterface::QUIET);
|
$this->io->writeError('<error>Your requirements could not be resolved to an installable set of packages.</error>', true, IOInterface::QUIET);
|
||||||
$this->io->writeError($e->getMessage());
|
$this->io->writeError($e->getMessage());
|
||||||
|
@ -467,12 +466,14 @@ class Installer
|
||||||
return array(max(1, $e->getCode()), array());
|
return array(max(1, $e->getCode()), array());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->io->writeError("Analyzed ".count($pool)." packages to resolve dependencies", true, IOInterface::VERBOSE);
|
|
||||||
$this->io->writeError("Analyzed ".$solver->getRuleSetSize()." rules to resolve dependencies", true, IOInterface::VERBOSE);
|
|
||||||
|
|
||||||
// force dev packages to be updated if we update or install from a (potentially new) lock
|
// force dev packages to be updated if we update or install from a (potentially new) lock
|
||||||
$operations = $this->processDevPackages($localRepo, $pool, $policy, $repositories, $installedRepo, $lockedRepository, 'force-updates', $operations);
|
$operations = $this->processDevPackages($localRepo, $pool, $policy, $repositories, $installedRepo, $lockedRepository, 'force-updates', $operations);
|
||||||
|
|
||||||
|
$this->eventDispatcher->dispatchInstallerEvent(InstallerEvents::POST_DEPENDENCIES_SOLVING, $this->devMode, $policy, $pool, $installedRepo, $request, $operations);
|
||||||
|
|
||||||
|
$this->io->writeError("Analyzed ".count($pool)." packages to resolve dependencies", true, IOInterface::VERBOSE);
|
||||||
|
$this->io->writeError("Analyzed ".$solver->getRuleSetSize()." rules to resolve dependencies", true, IOInterface::VERBOSE);
|
||||||
|
|
||||||
// execute operations
|
// execute operations
|
||||||
if (!$operations) {
|
if (!$operations) {
|
||||||
$this->io->writeError('Nothing to install or update');
|
$this->io->writeError('Nothing to install or update');
|
||||||
|
|
|
@ -164,7 +164,7 @@ class ArchiveManager
|
||||||
$filesystem->ensureDirectoryExists(dirname($tempTarget));
|
$filesystem->ensureDirectoryExists(dirname($tempTarget));
|
||||||
|
|
||||||
$archivePath = $usableArchiver->archive($sourcePath, $tempTarget, $format, $package->getArchiveExcludes());
|
$archivePath = $usableArchiver->archive($sourcePath, $tempTarget, $format, $package->getArchiveExcludes());
|
||||||
rename($archivePath, $target);
|
$filesystem->rename($archivePath, $target);
|
||||||
|
|
||||||
// cleanup temporary download
|
// cleanup temporary download
|
||||||
if (!$package instanceof RootPackageInterface) {
|
if (!$package instanceof RootPackageInterface) {
|
||||||
|
|
Loading…
Reference in New Issue