428 Commits (2d025dce0541dac35a2241b0a000aa67844ccf91)

Author SHA1 Message Date
Jordi Boggiano db6882b57f
Fix updating or URLs to include dist type and shasum, fixes #8216 5 years ago
Nils Adermann 9053d74282 Merge branch '2.0' into solve-without-installed
* 2.0: (101 commits)
  SVN: hide passwords for debug output
  Free $solver asap
  fixes #8179
  [minor] Fixed a typo in the CHANGELOG.md.
  Update deps
  Update changelog
  Revert "Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET" Revert "Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151"
  Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151
  Fix display of HHVM warning appearing when HHVM is not in use, fixes #8138
  Read classmap-authoritative and apcu-autoloader from project config when installing via create-project, fixes #8155
  Use possessive quantifiers
  Update xdebug-handler to 1.3.3
  fixes #8159
  Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET
  flag should come before script name
  use full command name, not abbreviated/alias
  modify text
  Document the alternatives to disable the default script timeout
  Anchor pattern
  Fix URL resolution for Composer repositories
  ...
5 years ago
Nils Adermann d2fa1e1319 Merge branch 'master' into 2.0
* master: (48 commits)
  SVN: hide passwords for debug output
  Free $solver asap
  fixes #8179
  [minor] Fixed a typo in the CHANGELOG.md.
  Update deps
  Update changelog
  Revert "Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET" Revert "Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151"
  Add docs for COMPOSER_SELF_UPDATE_TARGET, refs #8151
  Fix display of HHVM warning appearing when HHVM is not in use, fixes #8138
  Read classmap-authoritative and apcu-autoloader from project config when installing via create-project, fixes #8155
  Use possessive quantifiers
  Update xdebug-handler to 1.3.3
  fixes #8159
  Allow overriding self-update target file with envvar COMPOSER_SELF_UPDATE_TARGET
  flag should come before script name
  use full command name, not abbreviated/alias
  modify text
  Document the alternatives to disable the default script timeout
  Anchor pattern
  Fix URL resolution for Composer repositories
  ...
5 years ago
Nicolas Grekas 89d5d8f182 Free $solver asap 5 years ago
Jordi Boggiano 60df892517
Store dev mode in installed.json, fixes #3008 6 years ago
Matthew Brown 65903aacfd Fix type issues (#7996)
* Fix type issues found by Psalm
6 years ago
Nils Adermann c875f538ea Make root alias behaviour consistent, add root ref handling, lock to newest metadata
root aliases during install should come from the lock file only, for
better reproducibility we don't reuse the value from update for the
following install
6 years ago
Nils Adermann 10ada7bf82 Refactor Installer class into separate install and update processes
- Introduce separate Lock and LocalRepo transactions, one for changes
  to the lock file, one for changes to locally installed packages based
  on lock file
- Remove various hacks to keep dev dependencies updated and
  incorporated the functionality into the transaction classes
- Remove installed repo, there are now local repo, locked repo and
  platform repo
- Remove access to local repo from solver, only supply locked packages
- Update can now be run to modify the lock file but not install packages
  to local repo
6 years ago
Nils Adermann 1211ba1d51 BC break: Remove workaround for loading lock files without dev requires 6 years ago
Jordi Boggiano 9c32808782 Merge branch 'master' into 2.0 6 years ago
Hans-Christian Otto 85617aa740
Installer: Initialize $nameMatchesRequiredPackage
We had a case where we got `Undefined variable: nameMatchesRequiredPackage` — I think it should be initialized with false, right?
6 years ago
Jordi Boggiano b89720b52a Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano 1f97ffdcd7 Add some docs 6 years ago
Sascha Egerer 82ecf95a3c Add PHP 5.3 compatibility 6 years ago
Sascha Egerer 1845adcfbd Fix update whitelist pattern resolving and add more tests 6 years ago
Sascha Egerer dc59af555a Fix invalid call to array_merge 6 years ago
Sascha Egerer 50cb5fe3da Update all whitelist matching root dependencies
The update command can receive a pattern like `vendor/prefix-*`
to update all matching packages.
This has not worked if multiple packages, depending on each other,
where matched to the given pattern. No package has been updated
in this case as only the first package matching the pattern was
added to the whitelist.
6 years ago
Jordi Boggiano 411dd51f20 Merge branch 'master' into 2.0 6 years ago
Jordi Boggiano 66d84f60c6 Fix pattern matching for remove wildcard, refs #7715 6 years ago
Jordi Boggiano 2e0f31106a Merge remote-tracking branch 'origin/master' into 2.0 6 years ago
Mathias Brodala 38a34159ef Dispatch "post-package-update" event after writing lock (#7766)
Fixes #7765
6 years ago
Nils Adermann f11c357325 Restore output of number of packages analyzed in solver 6 years ago
Nils Adermann c0f19f6c57 Move construction of pool from repo set into a pool builder
Pool construction depends on the install request now, so only required
packages get loaded, add some structure for future asynchronously
loading composer repositories
6 years ago
Nils Adermann 4c7d271a36 Remove deprecated function 6 years ago
Nils Adermann 1747df97e7 Create pool in show command to use policy, remove todos 6 years ago
Nils Adermann b6e2d60c9e Create the pool in the installer before giving it to the solver 6 years ago
Nils Adermann 1228bcdffc Internalize pool creation in repository set, store root aliases in set
The pool is still exposed too early in a few places which will require
further refactoring
6 years ago
Nils Adermann 6ef65e5319 Add a new RepositorySet class and restrict pool usage to the solver
Breaking change for the plugin interface so bumping the version of
composer-plugin-api to 2.0.0

First step for a refactoring of the package metadata loading mechanism
6 years ago
Jordi Boggiano ff59bbdab0 CS fixer 6 years ago
Jordi Boggiano d5a9d86ee4 Undo reformatting from #7441 6 years ago
Vladimir Reznichenko cd39efc72c New finding by Static Code Analysis 6 years ago
Gabriel Caruso 7d9f8e2247
Improvements
Small improvements, such as remove unused imports, unecessaries casts, parentheses, etc.
6 years ago
Jeroen Ketelaar 6ff74d3ed1
[BUGFIX] Fixed typo in comment 6 years ago
Jordi Boggiano 43e33be79f Fix regression in 036fc44c25, fixes #7268 6 years ago
Jordi Boggiano 4bddcd7124 Add support for gitlab.com URL replacement, fixes #7160 7 years ago
Jordi Boggiano c8aea719b1 CS fixes 7 years ago
Jordi Boggiano 0b3bc4ccb9 Merge branch '1.5' 7 years ago
Jordi Boggiano 4c4f516ea2 Make sure binaries are recreated before POST-hooks fire 7 years ago
Jordi Boggiano 17ec4c17b0 Set COMPOSER_DEV_MODE for all events and not just POST hooks 7 years ago
Jordi Boggiano 9a99e86ebc Rename NonRoot to Transitive, refs #6674 7 years ago
Matthew Grasmick 776977f597 Fixing method name. 7 years ago
Matthew Grasmick 11db6f90c2 Cleaning up comments 7 years ago
Matthew Grasmick 3826e51caa Renaming some methods and props. 7 years ago
Matthew Grasmick 2e4afaa941 Not skipping root packages. 7 years ago
Matthew Grasmick 6db92eae92 Trying to fix update behavior. 7 years ago
Matthew Grasmick ad465aa769 Updating var names. 7 years ago
Matthew Grasmick f29e98cdf9 Fixes #6661: Allow a given package and its dependencies (including siblings) to be updated. 7 years ago
Abyr Valg 37addea447 Make composer see installed dev packages 7 years ago
Jordi Boggiano acdb7638a8 Warn about require-dev not being ignored when an update --no-dev fails to resolve dependencies, fixes #6575 7 years ago
Jordi Boggiano 23ab57c311 Merge branch '1.4' 7 years ago
Jordi Boggiano 9afbddab6b Only update dist references when one existed already, fixes #6363 7 years ago
Jordi Boggiano a3f2b7bb92 Tweak variable name 7 years ago
Nils Adermann b1110df873 Merge pull request #6371 from balbuf/balbuf/move-all-plugins
Move all plugins and their dependencies to the front
7 years ago
Stephen Beemsterboer 06bb6c7530 Move plugins with no dependencies to the front, followed by plugins with their dependencies 7 years ago
Stephen Beemsterboer 4cda7e0a44 Take into account a package's "provide" and "replace" fields
A package can satisfy a require by its "provide" or "replace" fields,
so this leverages the getNames() method which returns these alternate
names as well.
7 years ago
Jordi Boggiano 954300032b Avoid useless warnings when updating/removing stuff that is not installed 7 years ago
Stephen da6efc9b02 Move all plugins and their dependencies to the front 8 years ago
Jordi Boggiano 122e422682 CS fixes 8 years ago
Jordi Boggiano 6afc844339 Do not warn of mirrors not existing 8 years ago
Yanick Witschi 0ea93df252 Fixed no lock file was written when setting writeLock to true and executeOperations to false 8 years ago
Jordi Boggiano b2efcb1078 Update dist/source mirrors as well when updating a package's URL 8 years ago
Jordi Boggiano 4d77ffcb4a Merge branch 'simplify-output' 8 years ago
Jordi Boggiano 4d082f77b8 Simplify composer output to take less lines 8 years ago
Jordi Boggiano 1dcb2b5758 Merge remote-tracking branch 'nicolas-grekas/apcu' 8 years ago
Jordi Boggiano 3c1300bcaf Allow disabling execution of operations and lock writing independently from dryRun, closes #5787 8 years ago
Nicolas Grekas 6d4e60b991 Add --apcu-autoloader option to enable APCu caching of found/not-found classes 8 years ago
Jordi Boggiano 8ad6385ffb Merge remote-tracking branch 'fabpot/more-debug' 8 years ago
Jordi Boggiano 027de2960b Merge pull request #5794 from andrewjt71/issue-5769
Issue 5769 dev mode varaible
8 years ago
Fabien Potencier 5d742fd38b Fix POST_DEPENDENCIES_SOLVING trigger 8 years ago
Fabien Potencier 57ec0d1815 added more information in the output 8 years ago
Andrew Taylor ce6a3c0dd7 Issue 5769 dev mode varaible 8 years ago
Jordi Boggiano ed78253c58 Only update reference if there is actually a reference, fixes #5609 8 years ago
Jordi Boggiano edddae42db Revert default change from #5603 8 years ago
Jordi Boggiano 59596ff012 Make sure we do not overwrite binaries but only re-create missing ones, refs #5127 8 years ago
Jordi Boggiano 88d5b74c74 Merge remote-tracking branch 'j0k3r/re-install-binaries' 8 years ago
Jordi Boggiano 08ef916bed Change default value 8 years ago
Jesse Donat cbfd81dc99 Adds flag to allow suggestions to be skipped 8 years ago
Jeremy Benoist 4f7fbbc879 Introduce InstallerBinaryInterface
This is an interface for Installer which should support installing binary.
ATM there is only the `LibraryInstaller`.

It eases the check for supported method when installing binaries for all packages
8 years ago
Jordi Boggiano 8f0324f51e Fix platform dev reqs being required even in --no-dev installs 8 years ago
Jordi Boggiano 13f4d2afd3 Fix #refs handling, fixes #5291 8 years ago
Jordi Boggiano ac75680b1e Make sure the abandoned state is copied over even if the packages are installed already 9 years ago
Jordi Boggiano 4de17cef6b Always resolve dev packages even when doing an update with --no-dev, fixes #5016 9 years ago
Jordi Boggiano 11daebcb3a Merge pull request #5210 from Seldaek/fix_partial_updates_from_dirty_state
Fix partial updates from a dirty state and apply exactly the locked state
9 years ago
Jordi Boggiano c7c8335b8b Fix updating of dev refs if they are not whitelisted 9 years ago
Jordi Boggiano de5bfcb4c5 Fix partial updates from a dirty state and apply exactly the locked state, fixes #3468 9 years ago
Jordi Boggiano feda2a283f Improve error reporting some more, fixes #4310 9 years ago
Jordi Boggiano 6d20146d08 Normalize URL updates to point to the correct reference and always update URLs consistently, fixes #3849, fixes #4126 9 years ago
Jordi Boggiano 3b0a1c6f70 Run cs fixer and update config to latest master 9 years ago
Jeremy Benoist e9fc0e6548 Re-install binaries on update/install
Binaries are re-installed after an update/install (ie: removed and then installed)
9 years ago
Jordi Boggiano 747af10483 Clarify required by root message, refs #5099 9 years ago
Niels Keurentjes 8e78ce9a43 Add extra logging before and after SAT solving 9 years ago
Jordi Boggiano 55b0ed8c8b Change installs into updates if there is no lock file, simplify some code, fixes #5034 9 years ago
Rob Bast 8a19e8bd17 fix follow up issue to #4795 9 years ago
Jordi Boggiano 8344c6d3d7 Merge pull request #4993 from hkdobrev/create-project-suggests
List project suggestions in create-project command
9 years ago
Haralan Dobrev cc389d6c1a List project suggestions in create-project command
Resolves https://github.com/composer/composer/issues/2752
9 years ago
Jordi Boggiano 02ed27b16b Add outdated lock and failure to parse deps to quiet output, fixes #4393 9 years ago
Jordi Boggiano c2d78e5ce0 Restore GC and add comments to clarify why we turn it off, fixes #3488, closes #3503 9 years ago
Rob Bast a245c4618b php-cs-fixer 9 years ago
Niels Keurentjes 72a3563f1e Removed some 3 year old backward compatibility code. 9 years ago
Rob Bast be5719eb53 Merge remote-tracking branch 'upstream/master' into repro-4795
* upstream/master: (98 commits)
  Fallback to zlib extension to unpack gzip on non Windows systems
  Zip extension does not provide zlib support
  Unified all Windows tests throughout the code.
  Added Platform utility and unit test for it.
  Remove warnings for non-writable dirs, refs #3588
  [doc] add -H flag to sudo commands
  use full json content to determine reference, closes #4859
  typos
  Make sure COMPOSER_AUTH is also loaded in Config, refs #4546
  Use proper defaults for IO authentications
  Add verbosity input support to IOInterface
  Update SolverTest.php
  Update broken-deps-do-not-replace.test
  Update SolverProblemsException.php
  Cleaned up check+conversion that was no longer required.
  Cleaner notation for expected exceptions in fixtures.
  Introduced more generic, less invasive way to test for exceptions in fixtures, more in line with how phpunit works.
  Included unit test for circular root dependencies.
  Expanded InstallerTest to support expecting Exceptions by supplying "EXCEPTION" as "--EXPECT--"
  Clarified error message and added braces.
  ...
9 years ago
Rob Bast 0e584aa980 resolve issue 9 years ago
Jordi Boggiano 49d7d65933 Add verbosity input support to IOInterface 9 years ago
Artur Eshenbrener cf593351ef Bypass `runScripts` parameter to autoload dumper in `Installer:run()` method 9 years ago
Jordi Boggiano 4f934d9282 Avoid sending install notifications in dry-run mode 9 years ago
Boris Momčilović b05b52ff7e InstallationManager: notifyInstalls: append authorization header for repository 9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Rob Bast a1427d7fd6 replace all occurences in code and comments 9 years ago
Jordi Boggiano 8913ac2fff Merge pull request #4362 from bd808/classmap-authoritative-cli
Add cli argument for classmap-authoritative
9 years ago
Matthias Pigulla 3c08318ea0 Add test 9 years ago
Matthias Pigulla 2db52ebeba Also update source type and reference when changing URLs 9 years ago
Jordi Boggiano 6508dc4322 Allow packages with only a dist ref to be force updated when the dist ref changes 9 years ago
Bryan Davis cc2b9cfca5 Add cli argument for classmap-authoritative
Add a `--classmap-authoritative (-a)` argument to `composer install`,
`composer update` and `composer dumpautoload`. This enables the same
authoritative classmap behavior as the existing `classmap-authoritative`
configuration setting. The option can be used for creating highly
optimized production autoloaders via `composer install --no-dev
--optimize-autoloader --classmap-authoritative` for projects where
multiple autoloaders are present and unnecessary `file_exists` calls
introduce performance issues.

Closes #4361
9 years ago
DSanchez abfe54f334 Add missing PHPDoc
Conflicts:
	src/Composer/Installer.php
9 years ago
DSanchez 6ce9d2e152 Remove useless variable, method return void! 9 years ago
Jordi Boggiano a979cc78ed Suppress warnings on touch() failures of the vendor dir, refs #4070 9 years ago
Nils Adermann 5b1b96b61e Output the number of rules used in the solver for profiling purposes 9 years ago
Nils Adermann 07e1d227c9 Output the size of the pool after dependency resolution for users 9 years ago
Jordi Boggiano d0ff01698d Fix outdated comment 9 years ago
Jordi Boggiano d5bdf4be28 Update URLs for bitbucket as well 9 years ago
Jordi Boggiano d426246b80 Update only github dist URLs, refs #3985 10 years ago
Cees-Jan Kiewiet c9d9b5085a Replaced <error> with <warning> for abandoned package as it reflects the intention of this feature better 10 years ago
Nils Adermann 258fdcb44d Merge pull request #3986 from Seldaek/partial-update-keep-lock
Partial updates should not corrupt the lock if the installed repo is not up to date with it
10 years ago
Nils Adermann cb44f209f8 Merge pull request #3985 from Seldaek/update-urls
Check if package URLs are up to date after composer update is done
10 years ago
Jordi Boggiano 137c551247 Check if package URLs are up to date after an update op is done, fixes #3214 10 years ago
Jordi Boggiano 4507805508 Partial updates should not corrupt the lock if the installed repo is not up to date with it, fixes #3439, closes #3553 10 years ago
Nils Adermann b4ed331168 The Solver Request no longer depends on the Pool 10 years ago
Jordi Boggiano a57c51e8d7 Finalize platform override feature
- Added tests, docs
- Persist to lock file
- Add support in config command
- Added to json schema
10 years ago
Jordi Boggiano 80b0a35a68 Merge remote-tracking branch 'HuffAndPuff/ignore-platform'
Conflicts:
	src/Composer/Config.php
	src/Composer/Repository/PlatformRepository.php
10 years ago
isoroku e0657b60a2 Fix misspellings 10 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 10 years ago
Jordi Boggiano 0b4a9235f4 CS fixes 10 years ago
Jordi Boggiano 3efed220a6 Clean up event dispatching code and make package events extend installer events 10 years ago
Jordi Boggiano b4698568d2 Adjust tests and fix installer code to create the pool using locked requirements and not the composer.json reqs 10 years ago
Matthias Derer c9cff6387a removed requirements from the root package should we install from the lock file 10 years ago
Jordi Boggiano 095dc61295 Rename runAutoloader to dumpAutoloader, refs #3453 10 years ago
Jordi Boggiano b8f4960f0d Merge remote-tracking branch 'mattsah/master' 10 years ago
Nicolas Grekas e821ac2772 Persist prefer-lowest in composer.lock 10 years ago
Nicolas Grekas 98b254a3ec split update --prefer-lowest and --prefer-stable 10 years ago
Nicolas Grekas 4a0feb0189 add --prefer-lowest-stable to update command 10 years ago
Yagiz Nizipli bf210a340b Free up memory before disabling gc. 10 years ago
Jordi Boggiano 947c1fbabb Merge pull request #3484 from stof/fix_rule
Fix the display of rules
10 years ago
Jordi Boggiano ac676f47f7 Disable GC when computing deps, refs #3482 10 years ago
Christophe Coevoet 7fd9341464 Fix the display of rules
Close #3483
10 years ago
Matthew J. Sahagian 5896f283be Allow for disabling autoloader on Installer 10 years ago
Nils Adermann 6f4be698a5 Merge pull request #3325 from rdohms/implementing-abandoned-packages
Abandoned Package Warnings
10 years ago
Jordi Boggiano 94926218e8 CS fixes 10 years ago
Jordi Boggiano ec0463a400 Add tests for platform packages required by root and avoid creating rules altogether instead of disabling them, refs #3320 10 years ago
Jordi Boggiano 71976a638c Merge remote-tracking branch 'alu/ignore-ext-require'
Conflicts:
	src/Composer/Installer.php
10 years ago
jakoch 24b4ce8831 added $installer->isVerbose() 10 years ago
jakoch c8b9d299d5 added $installer->isDryRun() 10 years ago