1
0
Fork 0
Commit Graph

12584 Commits (b840a0620784fae0db0f55badf9fe4b702c8b479)

Author SHA1 Message Date
Jordi Boggiano b840a06207
Clean up lock update code to remove redundancy and avoid errors (#12149) 2024-10-04 11:47:01 +02:00
Jordi Boggiano 4cb5479211
Reverting release version changes 2024-10-04 11:31:01 +02:00
Jordi Boggiano e52b867227
Release 2.8.1 2024-10-04 11:31:01 +02:00
Jordi Boggiano 5c71c340c8
Update changelog 2024-10-04 11:30:56 +02:00
Jordi Boggiano ac2f89a05b
Fix create-project to reuse the target folders permissions for files created (#12146)
* Fix create-project to reuse the target folders permissions for files created

Fixes #9039

* Fix issue when COMPOSER_VENDOR_DIR env is set

* Allow null in setBaseDir
2024-10-04 11:19:36 +02:00
Jordi Boggiano 33ffd5abc3
Fix --strict-ambiguous to really report all issues, fixes #12140 (#12148) 2024-10-04 11:13:17 +02:00
Antal Áron 66bf6d31c3
Allow init without license (#12145) 2024-10-03 16:19:38 +02:00
Dezső BICZÓ ad3bfb87fd
Add version information to Controlling additional arguments doc (#12143) 2024-10-03 16:17:30 +02:00
Jordi Boggiano 4e3496e1bf
Fix a few cases where the prompt for using a parent dir's composer.json fails to work correctly, fixes #8023 2024-10-03 14:15:23 +02:00
Jordi Boggiano d3f40ca52d
Fix outdated command not forwarding some global options correctly 2024-10-03 14:05:32 +02:00
Jordi Boggiano b3d20319e9
Reverting release version changes 2024-10-02 16:40:29 +02:00
Jordi Boggiano d5e75c21ce
Release 2.8.0 2024-10-02 16:40:29 +02:00
Jordi Boggiano 71aa35ba31
Update changelog 2024-10-02 16:29:44 +02:00
Jordi Boggiano c6271f1f7f
Fix init command to accept proprietary as license 2024-10-02 16:21:16 +02:00
Jordi Boggiano 57e9795455
Fix issue downloading from codeload.github.com when using basic-auth for github, fixes #12126 2024-10-02 16:13:01 +02:00
Eirik Stanghelle Morland a01ab9bbca
Better app password support for bitbucket (#12103)
* Fix support for app passwords better, plus better handling of bitbucket repositories stored with ssh
2024-10-02 14:36:30 +02:00
Johnson Page 31d83b2c0f
Add `composer audit --ignore-severity` option (#12132)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2024-10-02 14:14:53 +02:00
Jordi Boggiano 5b256070b7
Tweak output of VcsRepo to be less verbose 2024-10-02 13:26:13 +02:00
Jordi Boggiano 58e8da795a
Update deps 2024-10-02 13:26:13 +02:00
PrinsFrank edb1588f68
Handle dump-autoload where vendor folder is not installed or not complete (#12139)
* Handle dump-autoload where vendor folder is not installed or not complete

* Fix implementation issues

The package could theoretically be a single file not a directory

---------

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2024-10-02 13:25:46 +02:00
Johnson Page 8949f91117
Fix deprecated ParametersAcceptorSelector::selectSingle (#12136)
* Fix deprecated ParametersAcceptorSelector::selectSingle

* Simplify extension code

---------

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2024-10-02 13:22:24 +02:00
PrinsFrank 469a156b59
Add dry-run argument to dump-autoload documentation (#12138) 2024-10-02 12:52:57 +02:00
Viktor Szépe 8728a75930
Fix typos (#12133) 2024-10-02 12:28:32 +02:00
PrinsFrank 3a503d1805
Update documentation for validate command (#12137) 2024-10-02 11:09:23 +02:00
Jordi Boggiano 95b9b54f0c
JSON schema updates (#12123)
* Add composer-lock-schema, update composer-repository-schema with new properties, add lock schema validation in diagnose

Fixes #7823

* Add ref to composer.json schema in the lock one
2024-09-26 13:36:25 +02:00
Jordi Boggiano d37dd5fff1
Make version guessing more deterministic if two branches appear to be the base of a feature branch (#12129) 2024-09-26 13:35:58 +02:00
Jordi Boggiano 5742df97c2
Tweak wording 2024-09-26 13:15:13 +02:00
Jordi Boggiano 1add25fcb5
Add SSL certificate problem hint in troubleshooting page 2024-09-26 13:14:19 +02:00
James Titcumb dfee3dec57
Add support-nts flag for php-ext section (#12127)
* Add support-nts flag for php-ext section

Ref: https://github.com/ThePHPF/pie-design/pull/25

* Update php-ext getter/setter definition with support-nts
2024-09-25 10:12:58 +02:00
Jordi Boggiano c8bd0e6278
Add --patch-only flag to update command to restrict updates to patch versions and make them safer (#12122)
Fixes #11446
2024-09-21 13:54:03 +02:00
Jordi Boggiano 6b81140f81
Fix many PHPStan errors in DependencyResolver namespace (#12121) 2024-09-21 13:53:33 +02:00
Jordi Boggiano 3a2a18175d
Add ability to reinstall packages by type (#12114)
Fixes #11364
2024-09-21 13:37:55 +02:00
Jordi Boggiano 58905ffe4e
Validate licenses passed into init command (#12115)
Fixes #10838
2024-09-19 17:07:28 +02:00
Jordi Boggiano a5d0d73e00
Show warnings for each missing platform package in create-project, fixes #10736 (#12120) 2024-09-19 17:06:49 +02:00
Jordi Boggiano a03331bd21
Add --strict-ambiguous to dump-autoload command (#12119)
Fixes #6221
2024-09-19 11:40:57 +02:00
Jordi Boggiano 3e7b3b26df
Check connectivity to custom composer repos in diagnose command 2024-09-19 10:24:30 +02:00
Juliette 8ae6fa1205
PHP 8.4 | Remove use of `E_STRICT` (#12116)
The `E_STRICT` constant is deprecated as of PHP 8.4 and will be removed in PHP 9.0 (commit finally went in today).

The error level hasn't been in use since PHP 8.0 anyway and was only barely still used in PHP 7.x, so removing the exclusion from the `error_reporting()` setting in these script shouldn't really make any difference in practice.

Ref:
* https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2024-09-19 09:34:35 +02:00
Jordi Boggiano dea55ec139
Respect sort-packages option when adding plugins to the allow-plugins list, fixes #11348 2024-09-18 16:57:22 +02:00
Jordi Boggiano e5af569bfc
Fix tests 2024-09-18 16:32:40 +02:00
Jordi Boggiano ad6198ad2a
Ensure stability-flags, platform and platform-dev keys are objects in composer.lock 2024-09-18 15:45:26 +02:00
Carlos Granados c8838f198e
Add option to run bump after update (#11942)
* Add option to run bump after update

* Convert the option into a bool | string parameter and change a couple of texts

* Apply suggestions from code review

* Fix tests

---------

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2024-09-18 15:34:25 +02:00
Jordi Boggiano 17930441a1
Add a way to control which scripts get args and where (#12086)
Add support for `@no_additional_args` and `@additional_args` tags inside script handlers.
2024-09-18 14:44:55 +02:00
Jordi Boggiano 8bc8c4383a
Merge branch '2.7' 2024-09-18 11:00:51 +02:00
Joe 8f455d7c0c
Add allow-missing-requirements config setting to ignore missing requirements (#11966)
* Add allow-missing-requirements configuration to ignore error during install if there are any missing requirements

* Add test for allow-missing-requirements config

---------

Co-authored-by: Joe <joe@wpj.cz>
2024-09-18 11:00:09 +02:00
Job Vink be7d9abc66
Improve interactive package updates (#11990)
* Improve interactive package updates

* Exclude platform packages and up to date packages, follow stability flags, ignore-platform-reqs etc

* Add tests and support for lock file + empty lock/vendor

---------

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2024-09-18 10:43:42 +02:00
Jordi Boggiano 07248f4323
Fix require command skipping new stability-flags from the lock file, fixes #11698 (#12112) 2024-09-18 09:16:31 +02:00
Jordi Boggiano 12031542ba
Add suggestions of provider packages for ext- and lib- packages (#12113)
Fixes #11669
2024-09-18 08:49:59 +02:00
John Stevenson bb8387e5a0
Remove proxy transition fallback (#11938) 2024-09-17 16:14:47 +02:00
Mohamed Hubail 21bf74d2c7
Add `--abandoned` option (#12091)
* Add `--abandoned` option

* Refactoring

- Use `Auditor::ABANDONEDS` in `Config.php`
- Drop `getAuditAbandoned()` from `BaseCommand.php`

* Modify cli docs
2024-09-17 15:44:55 +02:00
Jordi Boggiano bd4fd2cf94
Alias clarifications, fixes #11301 2024-09-17 15:35:53 +02:00