405 Commits (419567ba6db91e8cf15f78ba0690d5e4b6668c0e)

Author SHA1 Message Date
Jordi Boggiano 137c551247 Check if package URLs are up to date after an update op is done, fixes #3214 9 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 9 years ago
Nils Adermann b4ed331168 The Solver Request no longer depends on the Pool 9 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
9 years ago
Jordi Boggiano 80b0a35a68 Merge remote-tracking branch 'HuffAndPuff/ignore-platform'
Conflicts:
	src/Composer/Config.php
	src/Composer/Repository/PlatformRepository.php
9 years ago
isoroku e0657b60a2 Fix misspellings 9 years ago
Rob Bast cb336a5416 Implement writeError throughout Composer 9 years ago
Jordi Boggiano 0b4a9235f4 CS fixes 9 years ago
Jordi Boggiano 3efed220a6 Clean up event dispatching code and make package events extend installer events 9 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
alu b7fa302b90 add ignore-platform-package-requirements for update/install commands. 10 years ago
Rafael Dohms f9f2bbac59 Abandoned packages support
Added warning to the installer process.
If any installed packages are flagged, the user will get a warning at the end
of the install/update process.
10 years ago
Jordi Boggiano efcdb394d3 Rename *-solve-dependencies to *-dependencies-solving 10 years ago
Jordi Boggiano 81fa284c9b Merge remote-tracking branch 'francoispluchino/installer-events' 10 years ago
Jordi Boggiano 62b5062146 Improve sorting of plugin packages, fixes #3109, refs #2972 10 years ago
François Pluchino 1067ce4f96 Add installer events 10 years ago
Jordi Boggiano 0ce0cf42e8 Merge remote-tracking branch 'francoispluchino/fix-phpdoc'
Conflicts:
	src/Composer/EventDispatcher/EventDispatcher.php
10 years ago
Jordi Boggiano 4bd748b463 Fix BC issue from #3101 10 years ago
François Pluchino 8b5c00bff0 Fix phpdoc 10 years ago
David Zuelke d47d9eb253 remember prefer-stable setting in composer.lock 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jordi Boggiano 2ae0843616 Skip updates to same reference-locked version, fixes #2487, fixes #1333 10 years ago
Jordi Boggiano e23665be59 Fix replacers being picked if whatProvide was called before building the package whitelist, fixes #2991, fixes #2962 10 years ago
Joakim Israelsson bb375b1e75 Only use "platform" config if it is an array.
Another option could have been to adjust the test that failed so a
platform array is returned from the mock config object but this
feels more robust.

If "platform" config is set to a non-array value it is silently
ignored now.
10 years ago
Joakim Israelsson 571363dee2 The config setting 'platform' is used to override platform packages.
Like suggested in #1522.

These overridden packages appear only during install/update and not
when running init, show and search commands.
I don't know if they should or not.
10 years ago
Jordi Boggiano 3c0edd8c7f Process remove ops first, fixes #2874 10 years ago
Jordi Boggiano a931faaa34 Fix boolean check fail from a8ec134c2c 10 years ago
David Zuelke a8ec134c2c Only print suggestions in dev mode
There is no need to clutter the screen/logs/whatever with suggestions in production installs. If someone didn't care about them in dev mode, they certainly won't in production :)
10 years ago
Bilal Amarni db91454a13 added an autoload-dev section 10 years ago
Jordi Boggiano e1e48b28f7 Update vendor dir modified time after every install/update, fixes #2764 10 years ago
Jordi Boggiano 234be0b5e3 CS fixes, refs #2750 11 years ago
Richard George 2c01c9dd05 Avoid "Package foo/* listed for update is not installed" error
Previously 'compose update foo/*' gave an error
"Package foo/* listed for update is not installed. Ignoring" even if some foo/*
packages were present; however the packages *would* then be updated as
requested. This removes the false error iff foo/SOMEPACKAGE is required.
11 years ago
Robert Boloc 5e5311a224 use optimize-autoloader config param in update and install commands 11 years ago
Jordi Boggiano 51e6c3a466 Optimize solving by removing packages that are excluded by the root package requires 11 years ago
Marco Vito Moscaritolo 32b18a9409 Fixed missing closed warning tag.
In a console output a warning tag is not closed
11 years ago
Jordi Boggiano 384ed2822d Fire pre-update|install-cmd event as early as it should be, refs #2520 11 years ago
Jordi Boggiano e126c92525 Fix exit codes, cc @tyrael 11 years ago
Matthieu Auger fcba5257d9 If installer sets prefer option to false, the manager should too. Fixes #2359 11 years ago
Phillip Look 07a7284ffc Change dependency processing for update with whitelisted packages
By default dependencies of white listed packages are no longer installed automaticaly.
To Install dependencies of whitelisted packages use --with-dependencies.
- rework after review comments
- precise documentation of option
- add missing punctuation marks
11 years ago
Jordi Boggiano 9dcada5e25 Remove buggy chunk of code, refs #2312, refs #2305 11 years ago
Jordi Boggiano 11a0d16ccc CS fixes 11 years ago
Nils Adermann f0b45099c1 Correct authorship info for files I edited 11 years ago
Nils Adermann 3960edd64e Turn EventDispatcher into generic solution handling plugins as well 11 years ago
Nils Adermann 01a08a2ff3 As preparation for composer plugins, rename custom installers to plugins 11 years ago
Jordi Boggiano 21299e0bc4 Make sure all installers are installed first unless they have requirements, refs #2107, fixes #1147 11 years ago
Sebastian Kurfuerst 51b1eeeb3f [BUGFIX] make sure composer/installers is always installed/updated first
Resolves: #1147
11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Jordi Boggiano 7f7d13450e Clarify code a bit 11 years ago
Beau Simensen 3a0e4af132 Ensure packages in additional installed repository are not updated
The underlying assumption of the additional installed repository is that those
packages are installed in such a way that they cannot be updated. Prior to this
fix they were still candidates for change. This ensures that they are treated
like platform and root packages and are not candidates for update.
11 years ago
Jordi Boggiano b9a44a0057 Add RootAliasPackage, fixes #1842 11 years ago
Jordi Boggiano 5264d0637b Fix regression added in 33af9eea95, fixes #1841 11 years ago
Jordi Boggiano faa419cc0e Merge remote-tracking branch 'hason/alias' 11 years ago
Jordi Boggiano 73f4ce59ca Adjust -vv output of operation reasons in the installer 11 years ago
Jordi Boggiano 201cde05be Show reasons why an operation is executed in -vv mode, fixes #1063 11 years ago
Martin Hasoň fa0d62ab6a Settings of the same repository for a package is allowed. 11 years ago
Martin Hasoň 02f92e678f Fixed update alias packages in dry-run mode 11 years ago
Martin Hasoň 753a8345cb Added support for the alias of an aliased package 11 years ago
Jordi Boggiano d38eb244fa Add PlatformRepository::PLATFORM_PACKAGE_REGEX to remove duplication 11 years ago
Jordi Boggiano b519d65bff Do not throw exception on install --dev with old lock files if composer.json has no require-dev 11 years ago
Jordi Boggiano 2b385cbe58 Fix dependency flags not applying to provides/replaces, fixes #1771 11 years ago
Jordi Boggiano b0297ef67a Add prefer-stable flag to pick stable package over unstable ones when possible 11 years ago
Jordi Boggiano 83084eedf9 Skip update whitelist warning for "nothing" and "lock" 11 years ago
Jordi Boggiano 7e4ca7638c Remove support for deprecated lock format 11 years ago
Jordi Boggiano ee60df708d Handle stability changes correctly, fixes #877
On update, packages that are less stable than the minimum-stability allows will
now be downgraded to their correct versions, even if they were installed as
unstable already.
11 years ago
Jordi Boggiano be861f090a Remove filterPackages and add RepositoryInterface::search, refactor all commands to use new methods and remove all usage of the full package list for Composer repositories that support providers, fixes #1646 11 years ago
Jordi Boggiano 60204f9227 Fake a dev lock when a non-dev update is made and there are actually no dev requirements 11 years ago
Jordi Boggiano a32aa1a305 Fix BC handling of old require-dev, refs #1656 11 years ago
Jordi Boggiano 373ff04261 Fetch only non-dev packages from lock if doing a dev update fails due to a previously incomplete lock file, fixes #1650 11 years ago
Jordi Boggiano ea7d79ab03 Make sure platform requirements of the root package are enforced when installing from lock, fixes #1611 11 years ago
Jordi Boggiano 73adf29602 Purge old dev packages before installing/updating new ones to make sure people do not have issues updating 12 years ago
Jordi Boggiano 4207fc3b19 Refactor require-dev handling to use one single repository and a one pass solving, fixes #719, fixes #1185, fixes #1330, fixes #789, fixes #640 12 years ago
Jordi Boggiano 357f0572d1 Only print ignoring warning when a package is not installed and not required by the root package, fixes #1642 12 years ago
Christian Jul Jensen b04dbf5d71 Outout message when trying to update non-installed packages 12 years ago
Jordi Boggiano 8d55b9cced Merge remote-tracking branch 'ronnylt/script-event-post-dump-autoload'
Conflicts:
	tests/Composer/Test/Autoload/AutoloadGeneratorTest.php
12 years ago
David Weinraub 86defea407 Modify punctuation for outdated dependency message in installer 12 years ago
Ronny López e5cbf83185 Added post-autoload-dump script event. 12 years ago
Jordi Boggiano 514a3cde77 CS fixes 12 years ago
Jordi Boggiano 6bb1b4ae78 Fix regex delimiters, refs #1419 12 years ago
Jordi Boggiano 5fd19f63dd CS fixes, refs #1419 12 years ago
Aurélien Thieriot e264282ac7 Allowed only * wildcard 12 years ago
Aurélien Thieriot 159badb06b Add ability to use a Regexp when updating packages 12 years ago
Jordi Boggiano e868c9706b Add support for batch notifications 12 years ago
Jordi Boggiano ead17b2680 Fix solving issue when provide provides a platform package that is already installed, fixes #1171 12 years ago
Jordi Boggiano f1f1ddb66b Fix updates when dev packages have new dependencies (no more double updates needed), fixes #1105 12 years ago
Jordi Boggiano 2de2e953c0 Add warning for outdated lock file since they cause massive slowdowns 12 years ago
Christer Edvartsen 4b8813269c Pass the current dev mode to the event dispatcher, which in turn passes it to the events fired. This can be fetched in scripts to check which mode we are currently in 12 years ago
Jordi Boggiano c0e75e5d24 Fix lock file out of sync warning, fixes #1307 12 years ago
Jordi Boggiano 22344f6ad7 Add chainability of disableCustomInstallers 12 years ago
Jordi Boggiano 711179b2b4 Do not send an empty list of packages to the default policy, fixes #1259 12 years ago
Pascal Borreli 5eead93250 Fixed typos 12 years ago
Jordi Boggiano f3bfeb3608 Rename --optimize-autoloaders to --optimize-autoloader since there is just one 12 years ago
Jordi Boggiano f15d86111d Merge remote-tracking branch 'KingCrunch/issue/1225' 12 years ago
Jordi Boggiano 9856e9e3f5 Fix selection of best package to force update of dev packages, fixes #1252 12 years ago
Sebastian Krebs d3aaeb21da Allow autoloader optimization right from 'install' 12 years ago
Jordi Boggiano e887f6cea9 Fix CS 12 years ago
Jordi Boggiano b4bcc5b5c8 Fix bogus operations that trigger a "package is not installed" exception for dev installs, refs #789 12 years ago
Jordi Boggiano bd826d7644 Mock local repositories in dry-runs 12 years ago
Jordi Boggiano 350c7cbb3a Fix constraints shown in Problem output 12 years ago
Jordi Boggiano ee0cd07468 CS fixes 12 years ago
Jordi Boggiano cb2a0f46a1 Merge remote-tracking branch 'cs278/issue/879-dev-autoload-definitions'
Conflicts:
	src/Composer/Installer.php
12 years ago
Jordi Boggiano 027037bb9f Fix dist urls for lock files and hardcoded references 12 years ago
Jordi Boggiano a9afa8bc1f Merge remote-tracking branch 'mheleniak/prefer_dist' and fix dists
Conflicts:
	src/Composer/Installer.php
	src/Composer/Package/Locker.php
12 years ago
Chris Smith 3281a0b5df Use the locked package for the update operation 12 years ago
Jordi Boggiano 536563dc2a Rename method 12 years ago
Jordi Boggiano 418e876e8a Use only the locked repository when possible for better performance 12 years ago
Jordi Boggiano 83239aa338 Update lock file to contain the complete package info, fixes #890 12 years ago
Christophe Coevoet 9e372b1d8b Simplified the code 12 years ago
Christophe Coevoet d0faa016c1 Refactored the search of suggested packages to support replacements
Fixes #752
12 years ago
Mateusz Heleniak be736c745e better exception message 12 years ago
Mateusz Heleniak 6489487245 compare references when using dists 12 years ago
Mateusz Heleniak aa0ff14be5 added --prefer-dist option 12 years ago
Jordi Boggiano 5a247ca9a5 Fix regression in updating dev packages to latest ref, fixes #1030 12 years ago
Jordi Boggiano c97720c607 Fix picking of new dev packages for updates to latest source ref 12 years ago
Jordi Boggiano c14bc368b0 Fix memory usage of the update command 12 years ago
Jordi Boggiano d6de4a0036 Rename Package interfaces to reduce BC issues 12 years ago
Jordi Boggiano 774021bf99 Clean up Installer::aliasPackages() 12 years ago
Jordi Boggiano 2d4076e9b2 Add support for aliases in streamed repos 12 years ago
Nils Adermann de6bb0409b Merge pull request #1008 from mheleniak/master
output info before fetching composer repos
12 years ago
Jordi Boggiano 4d84f62cd9 Improve consistency and formatting of verbose output for update/install 12 years ago
Mateusz Heleniak edc63c2b49 output info before fetching composer repos 12 years ago
Johannes M. Schmitt 88a1f27798 added a way to disable custom installers 12 years ago
Nils Adermann f12818233d Merge pull request #909 from missinglink/master
Minor copy change
12 years ago
Peter Johnson 2f26d2a749 Copy change 12 years ago
Nils Adermann d84273ee34 Merge pull request #833 from Seldaek/installmgr_cleanup
Use the config object to define the vendor dir and not the installation manager
12 years ago
Jordi Boggiano 5c30fcb777 Fix update whitelist behavior, fixes #782 12 years ago
Jordi Boggiano b876dcbafb Use the config object to define the vendor dir and not the installation manager 12 years ago
Jordi Boggiano c9ef7479c4 Keep track of commit dates in the lock file in case the reference disappears 12 years ago
Jordi Boggiano 4bbb168d44 Remove BC code 12 years ago
Jordi Boggiano bc7e983b1e Allow PlatformRepository packages to be aliased 12 years ago
Jordi Boggiano 5bfbff867c Root requires are not taken into account in locked installs, fixes #669 12 years ago
Jordi Boggiano 31330a739f Fix CS 12 years ago
Jordi Boggiano e6cd41ffc7 Merge pull request #740 from naderman/require-update
Skip dependency packages required in composer.json in update whitelist
12 years ago
Nils Adermann c7250917e8 Skip dependency packages required in composer.json in update whitelist 12 years ago
Nils Adermann 242323cba4 Merge pull request #736 from Seldaek/require-update
Require command & update <package>
12 years ago
Nils Adermann 2d9aa3d49d Update dependencies of whitelisted packages, but not random dependencies 12 years ago
Jordi Boggiano d21032ace5 CS fixes 12 years ago
Jordi Boggiano 734317b812 Add test and fix update whitelist feature 12 years ago
Jordi Boggiano 8ffe3c2e26 Cosmetic fixes 12 years ago
Jordi Boggiano c580cb8ba8 Add package argument to the update command, fixes #470, fixes #450 12 years ago
Nils Adermann 41215a0e47 Require first version of a root package alias, rather than alias
This makes sure that the alias will always be installed, even if it isn't
technically needed.
12 years ago
Jordi Boggiano 79826ee5c9 Fix dry-run output 12 years ago
Jordi Boggiano 0752e2b96b Fix output of dry run with --dev, fixes #676 12 years ago
Jordi Boggiano 63d7abf196 Fix dry run skipping some critical steps 12 years ago
Jordi Boggiano e25ccddeb7 Skip all scripts and not just command ones 12 years ago
Jordi Boggiano 1f2f161508 Merge remote-tracking branch 'pjedrzejewski/feature/skipping-scripts-execution'
Conflicts:
	src/Composer/Installer.php
12 years ago
Jordi Boggiano c440b4594a More PSR-2 goodness 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jordi Boggiano ba29b4bf94 Added references for dev versions, fixes #599
dev-<branch> and <n.m>.x-dev versions can now have a #<reference> appended
to them. This reference being a git/hg commit hash, or svn revision.
12 years ago
Paweł Jędrzejewski 129884ef72 rename skipScripts to runScripts. 12 years ago
Paweł Jędrzejewski cc8b33117a add --skip-scripts option to install/update commands. 12 years ago
Jordi Boggiano 0936670213 Add support for stabilities in lock file 12 years ago
Jordi Boggiano fabf5c2f6d Add InstalledArrayRepository to make sure the root package is not purged by the Pool because of a lower stability 12 years ago
Jordi Boggiano ef28f3b067 Basic handling of stability flags 12 years ago
Jordi Boggiano 66068fedcb Add minimum-stability flag on root package to filter packages by stability 12 years ago
Nils Adermann bca91677ac Keep original packages in installed repository when adding aliases 12 years ago
Nils Adermann 74da398f21 Request install of normalized alias version in lock file 12 years ago
Nils Adermann 0c1944a9d0 Let the solver handle aliases instead of the installer 12 years ago
Jordi Boggiano dd17a1bbd7 Force platform packages to remain installed 12 years ago
Krzysztof Menżyk 2d4d984929 Fixed typo in the Installer 12 years ago
Jordi Boggiano f7440076fa Revert "Merge remote-tracking branch 'naderman/remove-packages-by-default'"
This reverts commit 2988152602, reversing
changes made to adb4188e12.
12 years ago
Jordi Boggiano 2988152602 Merge remote-tracking branch 'naderman/remove-packages-by-default' 12 years ago
Jordi Boggiano 2dffa612a3 Merge remote-tracking branch 'igorw/root-install-twice' 12 years ago
Jordi Boggiano b3659d85f3 Force platform packages to remain installed 12 years ago
Igor Wiedler 1e23354666 Do not suggest packages that were installed 12 years ago
Igor Wiedler 0995933183 Do not install root package as a vendor if some dependency requires it, closes #480
Also add some tests for the installer.
12 years ago
Nils Adermann 540f9a09b2 Merge pull request #606 from Seldaek/aliasprio
Fix priority of aliases when mixing root package aliases with branch-alias ones, fixes #576
12 years ago
Jordi Boggiano cc3d91f75c Make sure aliased packages created by the locker are available in the pool 12 years ago
Jordi Boggiano 15ab5868a3 Move composer metafiles back in a composer dir, except autoload.php 12 years ago
Jordi Boggiano 06fb1b8083 Fix priority of aliases when mixing root package aliases with branch-alias ones, fixes #576 12 years ago
Jordi Boggiano 22fe296ad0 Move .composer files out into the vendor dir, fixes #497 12 years ago
Jordi Boggiano a1306091f2 Fix locking behavior with --dev 12 years ago
Jordi Boggiano f63df842b3 Fix alias handling with --dev installs, fixes #579 12 years ago
Jordi Boggiano f520ce6a80 Fix exception when solver could not resolve a set of packages 12 years ago
Jordi Boggiano 89e095b4b5 Handle --dev installs/updates 12 years ago
Jordi Boggiano e702761284 Output suggested packages after package installation 12 years ago
Jordi Boggiano 53191eb0fe Remove recommend, make suggest informational, add require-dev, fixes #78, fixes #510 12 years ago
Jordi Boggiano 26e3b77a4b Fix wording 12 years ago
Jordi Boggiano 9da7fbbf37 Fix project aliases being redownloaded since they had no version 12 years ago
Tiago Ribeiro 13839bf52c "Writing lock file" message is only displayed if locker isn't fresh 12 years ago
Jordi Boggiano b2609e8413 Update to locked source-ref when receiving a new lock file, fixes #358 12 years ago
Jordi Boggiano ceac0ca75b Fix updating of already installed dev packages, fixes #496 12 years ago
Jordi Boggiano b12e73792c Handle SolverProblemException nicer 12 years ago
Martin Hasoň 01c1878aea Save local repo after each success operation 12 years ago
digitalkaoz d502065cb7 fixed cs 12 years ago
digitalkaoz a4f6314daa reverted command interfaces for installer refactoring 12 years ago
digitalkaoz 673dd6312b fluent api for installer options 12 years ago
Jordi Boggiano 5f2e42ec46 CS fixes, made EventDispatcher optional in factory method 12 years ago
Beau Simensen 8a7d31706d Renamed Composer\Install to Composer\Installer 12 years ago