1
0
Fork 0
Commit Graph

12675 Commits (main)

Author SHA1 Message Date
Jordi Boggiano f12d2f5bb1
Merge pull request #12284 from Seldaek/init_validate_name
Sanitize guessed name and vendor name before suggesting it in init command
2025-01-20 15:38:09 +01:00
Jordi Boggiano 8d8f4e8ab8
Sanitize guessed name and vendor name before suggesting it in init command, fixes #12276 2025-01-20 15:08:15 +01:00
Jordi Boggiano d9a158daa0
Merge pull request #12268 from Seldaek/suppress_dev_hint_on_global
Suppress require-dev hint when requiring things globally
2025-01-20 14:33:07 +01:00
Jordi Boggiano 34c16ad169
Merge pull request #12231 from ThomasLandauer/patch-1
Adding explicit message to `why-not` if package is already installed
2025-01-20 14:30:13 +01:00
Jordi Boggiano 149dc40dda
Merge pull request #12283 from Seldaek/fix_cmd_guessing
Fix command name parsing to take into account global input options
2025-01-20 14:28:13 +01:00
Jordi Boggiano ade9c766eb
Delete .github/ISSUE_TEMPLATE.md 2025-01-20 14:06:02 +01:00
Jordi Boggiano 4871bd729d
Update issue templates 2025-01-20 14:05:30 +01:00
Jordi Boggiano 3acb0ca26b
Merge pull request #12273 from eliashaeussler/patch-1
Fix URL to GitLab personal access tokens
2025-01-20 11:41:13 +01:00
Jordi Boggiano b1b8d49d36
Fix command name parsing to take into account global input options
Fixes #12259
Closes #12275
2025-01-20 11:34:10 +01:00
Jordi Boggiano c0dece23e5
Merge pull request #12271 from jrfnl/feature/vcs-github-expand-funding-tests
GitHubDriverTest::testFundingFormat(): expand the tests + fix bug
2025-01-20 09:59:30 +01:00
Elias Häußler 781ba54ef0
Fix URL to GitLab personal access tokens 2025-01-10 22:50:00 +01:00
jrfnl 2b970652fb
GitHubDriverTest::testFundingFormat(): expand the tests + fix bug
Glad that I added some tests as this meant I found a bug in the PR I pulled previously (#12257).

The `thanks_dev` key expects a username in the format `u/gh/USERNAME`, but the call to `basename()` was stripping the `u/gh/` part off.

If the use of `basename()` is preferred here, the alternative would be to add `u/gh/` to the default URL prefix for thanks.dev. Let me know if you me to change that.
2025-01-10 17:45:33 +01:00
Jordi Boggiano f5e7a8390d
Merge pull request #12247 from andrewnicols/skipInvalidFormatFundingOnImport
Discard unsupported FUNDING.yml URL values
2025-01-10 16:46:38 +01:00
Jordi Boggiano 924527cda6
Allow using short form URLs like foo.com if they are very simple 2025-01-10 16:42:50 +01:00
Jordi Boggiano 7b261bdf53
Merge branch 'main' into skipInvalidFormatFundingOnImport 2025-01-10 16:34:19 +01:00
Jordi Boggiano 2645d080b5
Merge pull request #12257 from jrfnl/feature/vcs-github-funding-support-thanksdev
Fix failing Packagist updates / GitHubDriver::getFundingInfo(): add support for thanks.dev and polar.sh
2025-01-10 16:32:39 +01:00
Jordi Boggiano efe91c76e8
Merge pull request #12258 from TimWolla/release-attest-build-provenance
Generate build provenance attestation during release
2025-01-10 16:29:15 +01:00
Jordi Boggiano a2fcc1a4db
Merge pull request #12250 from elazar/patch-2
Update installer script URL to include openssl_free_key() deprecation fix
2025-01-10 13:40:56 +01:00
Matthew Turland 4deec0359f
Update installer script URL to include openssl_free_key() deprecation fix
If the installer script linked from [this page]([https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md](https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md)) is run using PHP 8, it generates the following deprecation notice.

```
Deprecated: Function openssl_free_key() is deprecated since 8.0, as OpenSSLAsymmetricKey objects are freed automatically in Standard input code on line 982
```

This issue was [fixed in the installer script]([composer/getcomposer.org#159](https://github.com/composer/getcomposer.org/pull/159)), but the documentation was not updated to link to the version of it that includes the fix.
2025-01-10 13:40:00 +01:00
Jordi Boggiano c1256a2920
Suppress require-dev hint when requiring things globally, fixes #12253 2025-01-10 09:40:27 +01:00
Jordi Boggiano c12edf8034
Merge pull request #12248 from glaubinix/redirect-response-output-warnings
Allow redirect responses to output warnings/infos
2025-01-10 08:53:32 +01:00
Jordi Boggiano 7b1655bc62
Merge pull request #12263 from Seldaek/autoload_order
Fix unstable order of psr-0 and psr-4 rules
2025-01-09 15:07:26 +01:00
Jordi Boggiano 7b1e983ce9
Fix unstable order of psr-0 and psr-4 rules
Fixes #12090
2025-01-09 14:50:13 +01:00
Jordi Boggiano 9d87fd7e8d
Update deps 2025-01-09 14:45:16 +01:00
Jordi Boggiano aa2fd0bb24
Merge pull request #12260 from bilogic/patch-1
explicitly state UTC
2025-01-08 15:49:18 +01:00
Tim Düsterhus 089972db87
Generate build provenance attestation during release
This will simplify secure installation of composer in GitHub Actions to two
calls to `gh` cli with no need to manually import any PGP signing keys:

    gh release --repo composer/composer download --pattern composer.phar
    gh attestation verify --repo composer/composer composer.phar

Given that the current PGP signing key is stored as a GitHub Action secret,
this type of attestation is no less secure than the existing PGP signing.
2025-01-08 15:46:13 +01:00
Jordi Boggiano b89036c1f8
Merge pull request #12261 from Seldaek/use_phar_running
Make use of Phar::running() to get the current phar path
2025-01-08 14:22:32 +01:00
Jordi Boggiano e751c8e4eb
Fix new phpstan error 2025-01-08 14:09:14 +01:00
Jordi Boggiano e81df52e53
Make use of Phar::running() to get the current phar path 2025-01-08 13:46:52 +01:00
bilogic d3da12a30d
explicitly state UTC 2025-01-06 11:39:42 +08:00
jrfnl ccdfb56078
GitHubDriver::getFundingInfo(): add support for thanks.dev and polar.sh
GitHub looks to have added a dedicated syntax for the thanks.dev funding platform when added to a `funding.yml` file.
However, it looks like Composer does not (yet) support this syntax as can be seen from failed Packagist updates of the dev branches of the [PHP_CodeSniffer](https://packagist.org/packages/squizlabs/php_codesniffer#dev-master) and [PHPCompatibility](https://packagist.org/packages/phpcompatibility/php-compatibility) packages.

The polar.sh funding platform also appears to be newly supported by GH and missing from the list.

This PR fixes both.

Refs:
* https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository
2024-12-31 02:14:33 +01:00
jrfnl ab390f6bf1
GitHubDriver::getFundingInfo(): order the cases
This re-orders the cases in the `switch` to follow the same order as the GitHub documentation (largely alphabetic) for easier comparisons between the two lists.

Refs:
* https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository
2024-12-31 01:50:29 +01:00
Stephan Vock f3f676d2a9
Allow redirect responses to output warnings/infos 2024-12-19 11:17:17 +00:00
Andrew Nicols 5c07d1d154
Discard unsupported FUNDING.yml URL values 2024-12-18 11:57:23 +08:00
Thomas Landauer 35ce4bd769 Adjusting the test 2024-12-11 13:46:24 +01:00
Thomas Landauer cefdee5049
Update BaseDependencyCommand.php 2024-12-11 13:31:36 +01:00
Jordi Boggiano fb397acaa0
Reverting release version changes 2024-12-11 11:57:45 +01:00
Jordi Boggiano 112e37d1dc
Release 2.8.4 2024-12-11 11:57:47 +01:00
Jordi Boggiano 1175bf52ac
Update changelog 2024-12-11 11:57:31 +01:00
Jordi Boggiano 6e0cb6cae0
Fix tests 2024-12-11 11:39:34 +01:00
Jordi Boggiano 8eedfd0ecb
Hide publish errors entirely with --no-check-publish instead of downgrading to warning, fixes #12196 2024-12-11 11:32:30 +01:00
Jordi Boggiano 99430ca669
Avoid returning failing status code if the composer audit fails in diagnose command, refs #12196 2024-12-11 11:29:49 +01:00
Jordi Boggiano ace7a3ffa8
Update deps 2024-12-11 10:53:22 +01:00
Jordi Boggiano 144e8f8a34
Fix create-project when passed with a path repo to disable symlinks by default
Fixes #12222
2024-12-11 10:51:37 +01:00
Jordi Boggiano 6a9336fa9c
Merge pull request #12233 from Seldaek/fix_duplicates
Fixed InstalledVersions returning duplicates in some instances
2024-12-11 10:40:36 +01:00
Jordi Boggiano 45436c0a20
Fixed InstalledVersions returning duplicates in some instances
Fixes #12225
2024-12-11 10:25:10 +01:00
Jordi Boggiano a383632641
Merge pull request #12230 from Seldaek/duplicate_errors
Fixes #12214
2024-12-11 09:26:04 +01:00
Jordi Boggiano 3a2d1c5f9c
Update logic 2024-12-11 09:24:40 +01:00
Justin Beaty 5cb9733588
Fix bug when plugin defines multiple PluginInterface classes (#12226) 2024-12-10 16:49:33 +01:00
Thomas Landauer e132a5a84a
Adding explicit message to `why-not` if package is already installed
Closes #12227
2024-12-10 16:37:59 +01:00