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
Jordi Boggiano
14ec957e96
Fix composer show -a usage, fixes #9304
4 years ago
Jordi Boggiano
99a5469b5e
More hints
4 years ago
Jordi Boggiano
743d551399
Fix using show command to show platform packages, and allow using it to show replacers too by using the replaced name, fixes #7628
4 years ago
Jordi Boggiano
e7d99c37b3
Fix show --locked to avoid listing all the things
4 years ago
Jordi Boggiano
da1357c663
Avoid showing alias versions in show command, show the original version
4 years ago
Jordi Boggiano
34dd9e19e1
Add curl/zip ext info to diagnose command
4 years ago
Jordi Boggiano
9ca7457698
Check whether remove command successfully removed the target packages, fixes #6998
4 years ago
Jordi Boggiano
badd1f2146
Remove silly default values of false on Installer class, refs #9204
4 years ago
Jordi Boggiano
24abd233ec
Merge branch 'master' into code-improvements
4 years ago
Jordi Boggiano
0775e261c5
Merge remote-tracking branch 'lstrojny/apcu-prefix'
4 years ago
Jordi Boggiano
adeabdbd56
Merge branch '1.10'
4 years ago
Jordi Boggiano
bc1cb1636d
Remove dead code, fixes #9277
4 years ago
Jordi Boggiano
d204eb4814
Merge branch '1.10'
4 years ago
Jordi Boggiano
6bf136489f
Ignore the COMPOSER env var when executing global scope commands, fixes #9259
4 years ago
Jordi Boggiano
9c4b00be67
Add -w/-W to docs, refs #9257
4 years ago
Jordi Boggiano
de3de0697e
Merge pull request #9257 from flavioheleno/improv/short-with-deps
...
With-dependencies alias
4 years ago
Jordi Boggiano
03b8c3db3f
Merge branch '1.10'
4 years ago
Grégoire Pineau
bfb4abfb56
Fixed description of StatusCommand: It do list all changes in vendor, not only for "source" ones
...
I tested it, and even with "dist" packages, the status command is able to find modified vendor
(And that's amazing, thanks)
4 years ago
Flavio Heleno
9d544d98b3
Added short flags for 'with-dependencies' and 'with-all-dependencies'
4 years ago
Simon Berger
80d71ccb3f
Merged isset, unset and str_replace calls
4 years ago
Jordi Boggiano
d6b39b4c55
Fix syntax error & improve handling
4 years ago
Christophe Coevoet
bcd8a73e8c
Fix support for running diagnose without openssl
...
The diagnose command already warns when openssl is not available. But the command was failing later when displaying the Openssl version.
4 years ago
Michael Telgmann
a4509d28e7
Introduce constants for Composer\Package\Link types
4 years ago
Simon Berger
974e7ba296
Removed unneccesary elseifs
4 years ago
Simon Berger
80a75e9959
Minor code improvements
4 years ago
Simon Berger
a6475a7118
Removed unused variables, properties and parameters of private functions
4 years ago