1
0
Fork 0
Commit Graph

8389 Commits (e58aad45b51c6b29b9f47800a182d7e86e654201)

Author SHA1 Message Date
Javier Spagnoletti e468b73cb2
Use a bitmask to produce deterministic exit codes for the "audit" command (#12203)
* Use a bitmask to produce deterministic exit codes for the "audit" command

* Rename consts, small cleanups

---------

Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2024-11-25 14:30:31 +01:00
Stephan 38cb4bfe71
GitLab: adjust links to profile/user-settings (#12205) 2024-11-21 09:16:24 +01:00
James Titcumb aee3bd14db
Add build-path to php-ext config options for PIE (#12206)
* Add build-path to php-ext config options

* Use phpstan- prefix for shape definitions
2024-11-21 08:52:30 +01:00
Jordi Boggiano 9fb833f97e
Reverting release version changes 2024-11-17 13:13:04 +01:00
Jordi Boggiano 2a7c71266b
Release 2.8.3 2024-11-17 13:13:04 +01:00
Jordi Boggiano 580f0006d6
Ensure we run git commands for bin/compile inside the root of the git repo, refs #12194 2024-11-15 14:08:32 +01:00
Jordi Boggiano 23d1030c73
phpstan type fixes 2024-11-14 11:54:11 +01:00
Jordi Boggiano a7a14ea860
Show root package version in error output for circular dependencies for added clarity 2024-11-14 11:26:58 +01:00
Jordi Boggiano f1163bdbd4
Avoid updating the lock hash if there is no lock 2024-11-14 11:05:32 +01:00
Nicolas Grekas 3dc279cf66
Stop relying on OS to find executables on Windows, and migrate most Process calls to array syntax (#12180)
Co-authored-by: Jordi Boggiano <j.boggiano@seld.be>
2024-11-06 13:49:06 +01:00
Jordi Boggiano 5a75d32414
Reverting release version changes 2024-10-29 16:12:11 +01:00
Jordi Boggiano 6e543d0318
Release 2.8.2 2024-10-29 16:12:11 +01:00
Jordi Boggiano e02f7ba58b
Fix parsing of comments in arrays of sponsor info, fixes composer/packagist#1473 2024-10-28 21:58:03 +01:00
Jordi Boggiano e0ed22bbd0
Warn/throw when we detect git safe.directory errors (#12178)
Fixes #12158
Fixes #12160
2024-10-28 21:37:38 +01:00
Jordi Boggiano 1f0d012845
Add hint how ambiguous class issues can be resolved, refs #6221 (#12179) 2024-10-28 21:37:23 +01:00
Jordi Boggiano 5c3f6e070d
Remove SignalHandler from Application to fix issues handling ctrl-C inside prompts
Fixes #12106
2024-10-28 16:30:35 +01:00
Jordi Boggiano e12cfa0c40
Fix create-project regression when using path repos with relative paths, fixes #12150 2024-10-28 15:37:13 +01:00
Jordi Boggiano fa5b361f34
Fix handling of signals in non-PHP binaries run via proxies (#12176)
Fixes #12164
2024-10-28 13:32:20 +01:00
Jordi Boggiano 186d78cde3
Add php-ext to array dumper 2024-10-24 11:38:45 +02:00
Christian Flothmann 0191d0c7c5
don't return a single space for packages without descriptions (#12162) 2024-10-19 22:15:13 +02:00
Christian Flothmann 787f503616
do not stumble over missing descriptions (#12152) 2024-10-15 11:22:49 +02:00
Jordi Boggiano a67ce984e9
Fix type 2024-10-04 16:39:31 +02:00
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 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
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 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
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
Viktor Szépe 8728a75930
Fix typos (#12133) 2024-10-02 12:28:32 +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
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 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 fde6a87f64
Sort problem rules (#12111) 2024-09-17 14:13:58 +02:00
Jordi Boggiano f42fb617e6
Bump branch-alias to 2.8 2024-09-17 14:08:38 +02:00
Jordi Boggiano f17df6d5a1
Fix handling of platform packages in why-not command and partial updates, fixes #12104 (#12110) 2024-09-17 13:31:33 +02:00
Jordi Boggiano 3e7b826904
Avoid opening php://stdin multiple times, fixes #12107 2024-09-17 09:47:23 +02:00
Jordi Boggiano 1b5b56f234
Fix handling of COMPOSER_ROOT_VERSION to normalize according to expectations, fixes #12101 (#12109) 2024-09-17 08:38:43 +02:00
Jordi Boggiano 5f2b91aea8
Revert "fix(Locker): don't store transport-options.ssl within the lock-file (#12019)"
This reverts commit 03bbfdd8f4.
2024-09-16 11:31:52 +02:00
Jordi Boggiano e4038e5e3b
Reverting release version changes 2024-09-04 14:43:28 +02:00
Jordi Boggiano e30ccdd665
Release 2.7.9 2024-09-04 14:43:28 +02:00
Jordi Boggiano 1fcb6a5d53
Fix docker detection breaking on constrained environments, fixes #12095 2024-09-02 10:24:23 +02:00
Jordi Boggiano 4a34725682
Bump dependencies, fixes #12015 2024-09-01 22:17:55 +02:00
Jordi Boggiano aca19582b5
Reverting release version changes 2024-08-22 15:28:36 +02:00
Jordi Boggiano a2edd4e441
Release 2.7.8 2024-08-22 15:28:36 +02:00
Jordi Boggiano a17096f5ba
Fix copy() sometimes failing on virtualbox shared folders, fixes #12057 2024-08-22 12:44:48 +02:00
Jordi Boggiano bbb603490b
Fix duplicate libraries causing issues when conflicting extensions from core and pecl are installed concurrently (#12093)
Fixes #12082
2024-08-22 12:11:39 +02:00
Jordi Boggiano 39d9a5b6c5
Fix relative:true not being respected in path repo installs, fixes #12074 (#12092) 2024-08-22 11:45:25 +02:00
Jordi Boggiano f931887304
Detect incorrectly configured COMPOSER env when set to a directory, refs #12049 2024-08-22 10:49:04 +02:00
Jordi Boggiano e173d20450
Ensure COMPOSER_AUTH takes precedence over local auth.json, fixes #12084 2024-08-21 18:39:07 +02:00
Jordi Boggiano 8f3fed674b
Clean up md5/sha1 usages, upgrade algos where possible (#12088)
* Clean up md5/sha1 usages, upgrade algos where possible

* Fully qualify PHP_VERSION_ID constant usages

* Fix 7.2 build
2024-08-21 17:06:42 +02:00
Jordi Boggiano 556ca06906
Fix phpstan build with latest deps 2024-08-21 16:44:20 +02:00
Jordi Boggiano 48d345ac3e
Update deps, fix some phpstan issues
Update baseline (1484, 84)
2024-08-21 14:47:44 +02:00
Jordi Boggiano 3ba58ea3eb
Normalize namespaces in psr-0/psr-4 rules to fix edge cases, fixes #12028 (#12063) 2024-08-19 13:52:44 +02:00
Jordi Boggiano 9da1948585
Improvements to docker detection (#12062)
* Improvements to docker detection, fixes #11073

* Apply suggestions from code review

Co-authored-by: Dan Wallis <dan@wallis.nz>
2024-08-19 11:01:34 +02:00
Sam L d3d378184b
Provide release-date/release-age and latest-release-date in composer outdated -A -f json (#12053) 2024-07-26 16:21:02 +02:00
Jordi Boggiano d53cf81429
Fix various phpstan warnings 2024-07-26 09:32:22 +02:00
Jordi Boggiano 17f4984601
Make use of new PHP 8.4.0 function to replace implicit $http_response_header var (#11995) 2024-07-25 17:43:11 +02:00
Jordi Boggiano 39981a0e2b
Sanitize VCS URLs when building cache keys, fixes #11917, closes #11918 (#12043) 2024-07-25 17:24:49 +02:00
Jordi Boggiano eeff1c79ba
Fix addressability of branches containing # characters (#12042)
Fixes #12029
2024-07-25 16:46:57 +02:00
Jordi Boggiano 7504685a2e
Update phpstan and add composer/pcre extensions (#12045)
* Update phpstan and add composer/pcre extensions
* Update baseline (1516)
2024-07-25 16:28:25 +02:00
ADmad 029dda0b43
Fix deprecation notice on PHP 8.4 (#12046)
PHP 8.4 requires nullable arguments to be explicitly declared as such.
2024-07-25 16:26:39 +02:00
Jordi Boggiano 685add70ec
Refactor the BasePackage::$stabilities into a constant 2024-07-12 11:28:26 +02:00
Jordi Boggiano bd03981ea7
Fix archive command crashing if a path cannot be realpathed on windows, fixes #11544 2024-07-11 09:29:55 +02:00
Jordi Boggiano 68f6498bd3
Only read first 500 bytes of a bin file to detect if it is a PHP script, refs #12032 2024-07-10 15:08:18 +02:00
Quỳnh Nguyễn 6ec76db926
Remove redundant boolean type casts (#12033) 2024-07-10 11:04:20 +02:00
Ilya Urvachev 03bbfdd8f4
fix(Locker): don't store transport-options.ssl within the lock-file (#12019) 2024-07-10 10:35:26 +02:00
Jordi Boggiano b2832867e6
Fix some edge cases of tilde constraints in bump command (#12038)
* Fix: Add test case for not dropping patch version for tilde

* Fix some edge cases of tilde constraints in bump command, fixes #11218

---------

Co-authored-by: Matthias Vogel <git@kanti.de>
2024-07-10 09:47:37 +02:00
Jordi Boggiano e61d4ad986
Update deps 2024-07-06 23:35:00 +02:00
Jordi Boggiano 01ce481f22
Reverting release version changes 2024-06-10 22:11:13 +02:00
Jordi Boggiano 291942978f
Release 2.7.7 2024-06-10 22:11:12 +02:00