James Titcumb
b70b6bd070
Remove superfluous override- prefix from download-url-method ( #12297 )
2025-02-05 11:20:56 +01:00
James Titcumb
103041802c
Added override-download-url-method directive for php-ext ( #12296 )
2025-02-05 11:00:15 +01:00
Stephan
6308749a61
Merge pull request #12290 from glaubinix/skip-scripts-for-certain-events
...
Scripts: add ENV variable to skip script execution for certain event names
2025-02-03 16:39:21 +01:00
Jordi Boggiano
62bf82a4f7
Merge pull request #12289 from syssi/feature/introduce-new-envs
...
Introduce COMPOSER_{,ALL_}WITH_DEPENDENCIES env var
2025-02-03 16:38:53 +01:00
Jordi Boggiano
6ba63dd29c
Add hint when avast is detected and we get a curl error 60, refs #9894
2025-02-03 11:34:02 +01:00
Sebastian Muszynski
4f4b43badb
Extend input option descriptions
2025-01-27 17:45:41 +01:00
Sebastian Muszynski
9d2897b850
Introduce COMPOSER_WITH_DEPENDENCIES and COMPOSER_WITH_ALL_DEPENDENCIES env var
2025-01-27 17:22:40 +01:00
Jordi Boggiano
6d03fad8a5
Reverting release version changes
2025-01-21 15:23:40 +01:00
Jordi Boggiano
ae208dc1e1
Release 2.8.5
2025-01-21 15:23:40 +01:00
Jordi Boggiano
30e5825c68
Merge pull request #12266 from Seldaek/copy_src_to_dist_ref
...
Copy source ref to dist ref if a custom dist info is present in non-dist-supporting drivers
2025-01-21 14:41:35 +01:00
Jordi Boggiano
0626efaa13
Merge pull request #12269 from Seldaek/fix_installed_regr
...
Fix regression from #12233 in InstalledVersions when reload is used
2025-01-21 13:51:20 +01:00
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
ee6dc33fd1
Fix regression from #12233 in InstalledVersions when reload is used, fixes #12235
2025-01-20 15:13:43 +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
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
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
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
c1256a2920
Suppress require-dev hint when requiring things globally, fixes #12253
2025-01-10 09:40:27 +01:00
Jordi Boggiano
58e38b111d
Copy source ref to dist ref if a custom dist info is present in non-dist-supporting drivers, fixes #12237
2025-01-10 09:01:18 +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
7b1e983ce9
Fix unstable order of psr-0 and psr-4 rules
...
Fixes #12090
2025-01-09 14:50:13 +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
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
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
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
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
45436c0a20
Fixed InstalledVersions returning duplicates in some instances
...
Fixes #12225
2024-12-11 10:25:10 +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
Alexandre Daubois
eefa012204
Add OS families to `php-ext` config options for PIE ( #12218 )
2024-12-09 14:37:10 +01:00
Jordi Boggiano
bbab31b564
Fix bump-after-update when passing inline constraints, fixes #12223
2024-12-09 14:27:05 +01:00
Jordi Boggiano
5eeba719d3
Fix type
2024-11-26 17:10:11 +01:00
Jordi Boggiano
59b63bc231
Validate license data more thoroughly
2024-11-26 14:49:36 +01:00
Jordi Boggiano
cc820306eb
Ensure installed.php data is sorted deterministically, fixes #12197
2024-11-25 16:23:10 +01:00
Lctrs
dc2844cc72
disable multiplexing for some versions of curl ( #12207 )
...
* disable multiplexing for some versions of curl
I'm behind a corporate proxy and was hitting a `Curl 2 (...) [CONN-1-0] send: no filter connected` error when trying to download some packages.
Some google research led me to https://github.com/rust-lang/cargo/issues/12202 and its fix https://github.com/rust-lang/cargo/pull/12234 .
This PR backports this fix to composer.
> In certain versions of libcurl when proxy is in use with HTTP/2
multiplexing, connections will continue stacking up. This was
fixed in libcurl 8.0.0 in curl/curl@821f6e2
* fix has proxy condition
2024-11-25 15:03:36 +01:00