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
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.
11 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.
11 years ago
Jordi Boggiano
3c0edd8c7f
Process remove ops first, fixes #2874
11 years ago
Jordi Boggiano
a931faaa34
Fix boolean check fail from a8ec134c2c
11 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 :)
11 years ago