Jordi Boggiano
8f1b3d21db
Add --no-scripts to all commands and disable plugins/scripts when running self-update ( #10371 )
...
* Add --no-scripts as global parameter available to all commands, and handle it by default when creating a Composer instance from Command::getComposer
* Disable scripts/plugins for self-update command, fixes #10351
3 years ago
Jordi Boggiano
1cfdaf43f1
Fix new file being leftover if require in new dir fails to resolve requirements
3 years ago
Jordi Boggiano
d86049565d
Deactivate plugins before recreating a new composer instance and loading new plugins in require/remove commands, fixes #9962
3 years ago
Martin Herndl
3013674c92
Refactor ignore platform reqs checks ( #10079 )
...
Introduces a `PlatformRequirementFilter` with methods that help to decide if a requirement is ignored or not as discussed in #10045 but without changing behaviour.
3 years ago
Samuel Felipe
3ccb54832b
PHPStan level 6 in src/Composer/Command ( #10214 )
3 years ago
Jordi Boggiano
9599eb613b
Type annotations
3 years ago
Jordi Boggiano
4a7abd79c9
Fix 5.3 syntax 😒
3 years ago
Jordi Boggiano
759a3a9300
Fix require reverting changes even though dependency resolution succeeded if when something fails afterwards, closes #10118
3 years ago
Jordi Boggiano
f776f52474
Hint composer require alternatives if dep resolution fails, fixes #10136
3 years ago
Jordi Boggiano
0761474599
Add type info to many properties/methods
3 years ago
Jordi Boggiano
d3c176ec69
PHPStan Level 5 ( #10070 )
...
* Bump PHPStan to level 5
* Update seld/phar-utils to latest
* Add phpstan-setup / phpstan scripts
3 years ago
Nicolas Grekas
eac069bf36
Fix --no-scripts disabling events for plugins
3 years ago
Jordi Boggiano
3380178798
Introduce a cross-platform safe version of is_readable to support UNC / wsl$ paths on Windows ( #9861 )
3 years ago
Jordi Boggiano
f13282e555
Change default preferred-install to dist, add --prefer-install=auto|dist|source to allow specifying auto ( #9603 )
...
Fixes #9546
Fixes #9674
3 years ago
Julian
c78850ab98
Show a warning if require key changes for dependency ( #9542 )
...
Fixes #9516
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Jordi Boggiano
eb9616a82b
Debug info improvements
4 years ago
Jordi Boggiano
b7d770659b
CS fixes
4 years ago
Jordi Boggiano
e5a009ed80
Make sure empty objects are not left behind when removing requires/.. fixes #9462
4 years ago
Helmut Hummel
d1dfd394c1
Correctly avoid partial updates in require commands
...
The installer does not support partial updates, when
no lock file is present. The check in require command
to prevent a partial update however does not check whether
a lock file is present, but whether a lock file should be written,
which most likely always is true.
This check is now changed to check if a lock file is actually present.
4 years ago
Jordi Boggiano
0775e261c5
Merge remote-tracking branch 'lstrojny/apcu-prefix'
4 years ago
Jordi Boggiano
9c4b00be67
Add -w/-W to docs, refs #9257
4 years ago
Flavio Heleno
9d544d98b3
Added short flags for 'with-dependencies' and 'with-all-dependencies'
4 years ago
Lars Strojny
696f27ca83
Enable APCu if prefix is set
4 years ago
Lars Strojny
0b6abf3b96
APCu prefix as a separate option
4 years ago
Lars Strojny
dafd225a35
Allow to pass a string for apcu-autoloader to set the APCu prefix
4 years ago
Jordi Boggiano
085fe4e7e5
Add --no-progress support and a few more fixes
4 years ago
Jordi Boggiano
29ec10d95c
Fix output formatting
4 years ago
Jordi Boggiano
c8efb50d39
Change the single requirement ignore from --ignore-platform-reqs=xx to --ignore-platform-req=xx to avoid BC issues
4 years ago
Jordi Boggiano
e85da00dff
Add a way to ignore only some packages in --ignore-platform-reqs, and make the platform check ignore those packages which were ignored as requirements, fixes #8861
4 years ago
Jordi Boggiano
1d2df5ef55
Add output to remove/require command to highlight the fact it is running an update command, refs #8910
4 years ago
Jordi Boggiano
beded906ba
Merge branch '1.10'
4 years ago
Jean-Michel DELEHAYE
42fc372e52
Add function_exists() for 'pcntl_signal'
4 years ago
Jordi Boggiano
8a2dd1baef
Adjust all usages of VersionSelector to the new API
4 years ago
PirxDanford
3a7ea25289
Introduce --no-install option for the update, require and remove commands
...
Closes #8669 , fixes #8551
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
4 years ago
Jordi Boggiano
a0c5d519e9
Restore --no-suggest but mark it deprecated, remove --no-custom-installers and mark --dev also deprecated with stronger wording
4 years ago
Jordi Boggiano
ee09b75be3
Clean ups
4 years ago
Renan
c4a3e912a1
Remove duplicated `dry-run` option
4 years ago
Jordi Boggiano
51c48b1519
Merge pull request #8729 from naderman/t/partial-update-always-update-replace
...
Give a clearer error message explaining how to update a conflicting locked dependency
4 years ago
Jordi Boggiano
4e7ff690c6
Revert lock file as well when a require command operation failed to complete
4 years ago
Nils Adermann
1b55b466fb
require: Add with-dependencies and with-all-dependencies as alternative option names
4 years ago
Nils Adermann
9fb09049ff
Rename and document constants for partial update behavior
4 years ago
Nils Adermann
392d0abd21
Rename test files and standardize on allow list rather than whitelist
4 years ago
Jordi Boggiano
6679dde713
Merge pull request #8693 from enumag/patch-2
...
Add --dry-run to composer require
4 years ago
Jáchym Toušek
3bf46a77f9
Update RequireCommand.php
4 years ago
Jáchym Toušek
bbb781b1ed
Add --dry-run to composer require
4 years ago
Jordi Boggiano
44d1e15294
Simplify suggester output when updating, refactor suggest command to reuse SuggestedPackagesReporter and make smarter defaults, fixes #6267
4 years ago
Jordi Boggiano
d14d411fa4
Add --dry-run to require and remove commands, fixes #7793
4 years ago
Jordi Boggiano
173b96de2d
Make sure the first require does not fail due to a missing lock file
4 years ago
Jordi Boggiano
257d2ce889
Avoid setting the update whitelist in require command on newly created files and when the lock file is disabled
5 years ago
Jordi Boggiano
0ea06de286
Merge branch 'master' into 2.0
5 years ago