1712 Commits (5c98a2cf8e3df53172ed34130302a3d362f90631)

Author SHA1 Message Date
Jordi Boggiano d465df434c
Make sure diagnose command can run without proc_open, refs #9253 3 years ago
Jordi Boggiano deb4c48bbc
Avoid using an invalid path for InstalledFilesystemRepo in create-project and use an array repo instead, fixes #10020, fixes #10021 3 years ago
Jordi Boggiano f5a03b950d
Improve error reporting in require command, fixes invalid case of consistency issue, fixes #10006 3 years ago
Jordi Boggiano be58b36a35
Also look up 7zz on linux/macOS, fixes #9951 3 years ago
Jordi Boggiano db1d9e75be
Fix support for 7z command fallback on linux/macOS, fixes #9994 3 years ago
Ondřej Mirtes c65890d2d3
DiagnoseCommand - fix PHPDoc (#9991) 3 years ago
Jordi Boggiano 078aaa6968
Make sure the correct name is being output, fixes #9986 3 years ago
Jordi Boggiano a5efbbc94a
Validate schema before writing the file, fixes #9986 3 years ago
Jordi Boggiano 420d9bf21d
Move name validation out of interact, fixes #9986 3 years ago
noniagriconomie 65259ac8e0 Add Composer version in about command 3 years ago
Sebastian Blank a9031e40eb
Add "symlink" option for "bin-compat" config (#9959) 3 years ago
Jordi Boggiano c668c24599
Fix autoload events not being dispatched when running dump-autoload command, fixes #9954 3 years ago
Jordi Boggiano 6e851edd70
Add `--dev` to `dump-autoload` command to allow force-dumping dev autoload rules even if dev requirements are not present, fixes #9946 3 years ago
Jordi Boggiano cbb1504910
Also do the change in ReinstallCommand 3 years ago
Nicolas Grekas eac069bf36
Fix --no-scripts disabling events for plugins 3 years ago
Jordi Boggiano 5a28f677da
Fix outdated legend and only show legend when there is output to be shown, fixes #9939 3 years ago
Jordi Boggiano 4c9e75c6e5
Fix CS 3 years ago
Jordi Boggiano 91dd175f74
Fix env var handling when variables_order includes E and symfony/console 3.3.15+ is used, fixes #9930 3 years ago
Jordi Boggiano d864c5743a
Add 7-zip presence check to diagnose command 3 years ago
Jordi Boggiano a23f8a3d6c
Add gitlab-protocol to config command and schema 3 years ago
Jordi Boggiano 90d72ca686
Tweak validate command output to be slightly more readable, less colorful 3 years ago
Jordi Boggiano 2eaf81c813
Fix a few issues in lock file validation
- handle packages present but in wrong version
- handle provide/replace correctly
- do not validate if lock file is missing

refs #9899
3 years ago
Jordi Boggiano 69dc607408
Merge remote-tracking branch 'PrinsFrank/detect-missing-packages-on-validate' 3 years ago
Nils Adermann 1dc39bda75
Merge pull request #9915 from Seldaek/reinstall
Add a reinstall command
3 years ago
Jordi Boggiano 4dbdae3ada
Sort uninstalls in reverse order from installs 3 years ago
Jordi Boggiano 5737a34e53
Sort package installs using Transaction 3 years ago
Jordi Boggiano c8de960018
Throw when repo consistency is in question 3 years ago
Jordi Boggiano 387e504437
Undeprecated dump-autoload --no-dev even though it is mostly not needed anymore, refs #9714 3 years ago
Jordi Boggiano 500efbe233
Add a reinstall command, fixes #3112 3 years ago
Jordi Boggiano 6ac5b46607
Add legend for outdated and show --latest commands, fixes #9716 3 years ago
Jordi Boggiano 7888d3fb97
Align result descriptions to make search output more readable, fixes #9455 3 years ago
Frank Prins e83e92b2ae Ignore platform requirements like "ext-*" and "php" when validating the lock file as they don't get locked 3 years ago
Frank Prins 32b70142d9 Replace static anonymous function and replace it with normal anonymous function as static ones are only supported on PHP5.4 and up 3 years ago
Frank Prins f4d3a1e478 Detect missing packages that are a requirement or dev-requirement but not locked. 3 years ago
Jordi Boggiano 649087d6de
Fix type issues with root package interface 3 years ago
Jordi Boggiano 22cc96682d
Merge branch '2.0' 3 years ago
Jordi Boggiano b268e20d9f
Fix invalid interface usage 3 years ago
Jordi Boggiano 7b77161b7e
Merge branch '2.0' 3 years ago
Jordi Boggiano a844fce23e
Fix handling of inline-update-constraints with refs or stability flags, fixes #9847 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 2a50a9400f
Fix install step at the end of init command 3 years ago
Jordi Boggiano 1fd70de32d
Merge branch '2.0' 3 years ago
Jordi Boggiano 99d8e0ad09
Fix install step at the end of init command 3 years ago
Andreas Scheibel bb1bb022e4
"composer init --autoload" - Interactive generates PSR-4 autoloader in composer.json (#9829)
- Generates PSR-4 autoload entry in composer.json.
- Run dump-autoload, if no dependencies are set
3 years ago
John Stevenson c3b76a8532
Upgrade to xdebug-handler 2 (#9832)
This adds support for Xdebug3 modes and changes the default behaviour
from always restarting if Xdebug is loaded, to only restarting if Xdebug
is active.

Xdebug is considered active if it is loaded, and for Xdebug3, if it is
running in a mode other than `xdebug.mode=off`.
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
Jordi Boggiano 91136213d1
Merge branch '2.0' 3 years ago
Jordi Boggiano c3ae317a71
Support --no-dev combined with --locked in outdated/show commands, fixes #9788 3 years ago
Jordi Boggiano dca8bd7197
Merge branch '2.0' 3 years ago
Jordi Boggiano 18e268556d
Fix type warning on php8.1, refs #9770 3 years ago
vitman ecc8331312
Add dev mode env var for scripts run (#9793)
Co-authored-by: Vitali Tsyrkin <vitalit@playtika.com>
3 years ago
Jordi Boggiano bf73a20bc0
Merge branch '2.0' 3 years ago
Brandon Kelly 7652408829
Only call sapi_windows_set_ctrl_handler() for CLI requests (#9771) 3 years ago
ochorocho 35210d99a9
Add --format json to search command (#9747)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
3 years ago
Jordi Boggiano 4940009f83
Bump phpstan to level 3 (#9734)
Clean up PackageInterface/CompletePackageInterface, add missing methods, type things in solver as BasePackage, added CompleteAliasPackage, ..
3 years ago
Jordi Boggiano d0b399b788
Merge branch '2.0' 3 years ago
John Stevenson 07f59a9162
Preserve file permissions on Windows self-update (#9733)
Windows file operations result in different file permissions depending
if the file is copied or moved. A copy operation applies permissions
from the destination folder (or file if it already exists and does not
use inheritance), while a move operation generally preserves the source
file permissions.

Windows PHP `rename` uses MoveFileEx so if the user is running as an
admin and the destination is in a common (non-user) location, then the
permission for other users will be replaced by the admin user. Likewise
for the UAC elevation feature, which uses the cmd.exe `move` command.

This fix uses copy and delete operations on Windows, so that other users
can continue to run composer.phar
3 years ago
Jordi Boggiano 4851f65318
Remove version argument from why and enforce it for why-not command, refs #9693 3 years ago
Jordi Boggiano 40800df6bd
Fix CS 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 d806013091
Add more details when require/init fails to find a matching package due to the platform requirements 3 years ago
Jordi Boggiano d0aac44ed2
Auto-detect dev-mode in autoload-dump and deprecate dump-autoload --no-dev (#9714) 3 years ago
ochorocho 91b6ff27ac
Add --format option to `composer fund` command (#9678)
* Add --format option to `composer fund` command

Co-authored-by: Jochen Roth <jochen.roth@b13.com>
3 years ago
Jordi Boggiano 8f7597da22
Use a different way to suppress output than changing output verbosity in exec command, fixes #9711 3 years ago
Jordi Boggiano 4a740e3e61
Add warnings when running updates without curl enabled, fixes #9558 4 years ago
Jordi Boggiano bad4e4edbc
Fix some more wording 4 years ago
Ali Shaikh 6f5c4fcf3e Improving Composer self-update (version upto date) info message 4 years ago
Jordi Boggiano eb9616a82b
Debug info improvements 4 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Andrés De la Cruz 480a6439fd
Fix phpstan phpdocs issues (#9478) 4 years ago
Jordi Boggiano 9e279740cd
Go go phpstan 🤞 4 years ago
Jordi Boggiano 742c2a9e93
Avoid swallowing exceptions 4 years ago
Jordi Boggiano 35b403b266
Make sure a version not found issue is reported as such for clarity, fixes #9500 4 years ago
Jordi Boggiano f567fd69eb
List both unzip and zip ext presence in diagnose 4 years ago
Jordi Boggiano e5a009ed80
Make sure empty objects are not left behind when removing requires/.. fixes #9462 4 years ago
Jordi Boggiano 6a2f9870a7
Warn when init is being used non-interactively without any args passed in, instead of silently overwriting the file 4 years ago
Jordi Boggiano 87006774b1
Avoid requiring a lock file to run composer remove, fixes #9439 4 years ago
Jordi Boggiano f31564ef5b
Fix check-platform-reqs --no-dev to not require lock anymore 4 years ago
Jordi Boggiano 3f6899946b
Avoid using curl when it has been disabled, fixes #9423 4 years ago
Jordi Boggiano 6c31744c04
Disable full platform-check for extensions by default, now set to php-only, refs #9412 4 years ago
Jordi Boggiano fc0d724938
Allow configuring gitlab deploy tokens via config command, refs #9373 4 years ago
Jordi Boggiano e0e4d60166
Fix check-platform-reqs to be more clear about what is going on, and add a --lock flag to allow explicitly checking from lock 4 years ago
Jordi Boggiano f2f3b03fec
Fix config/create-project handling of repositories to prepend them by default as this is most likely the goal, fixes #9371 4 years ago
Jordi Boggiano ffc0f86fc0
Fix warnings in composer require to show when repo prio is at fault, refs #9371 4 years ago
Jordi Boggiano 34bdc6cbf2
Detect and hint for solutions for common curl errors, fixes #9376 4 years ago
johnstevenson 095d133d6b Remove fulluri checks and tidy diagnose output 4 years ago
Jordi Boggiano 90a6aa7ec0
Make sure we compare packages to their latest without aliases, fixes #9357 4 years ago
Jordi Boggiano 5d4bcde454
Allow using --locked with the outdated command directly, fixes #8025 4 years ago
Nils Adermann 289972a177 Remove useless null check, follow up to #9345 4 years ago
Nils Adermann cbcc3a3080
Remove trailing commas for function calls 4 years ago
Fabien Potencier d5245387f3 Fix error message 4 years ago
Nils Adermann b72dc7bb78
Clarify --lock option on update further
Specifically state packages do not get updated to new versions, only metadata is updated.
4 years ago
Jordi Boggiano 860a67b776
Update --lock docs, fixes #9315 4 years ago
Jordi Boggiano 4b8c2aa121
Fix default version to be semver parseable, fixes #9342 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 0d236858ec
Merge branch '1.10' 4 years ago
Jordi Boggiano 25496c199d
Update link to composer 2 release notes 4 years ago
Jordi Boggiano 49a28f606c
Merge branch '1.10' 4 years ago
terry.kern 0466add822 Also use channel string for update message
https://github.com/composer/composer/pull/9305#issuecomment-714381153
4 years ago
TerryKern e68b52697b Improve readability of version info message
Instead of:

> You are already using composer version 1.10.15 (1 channel).

it shows:

> You are already using composer version 1.10.15 (1.x channel).
4 years ago