1
0
Fork 0
Commit Graph

12612 Commits (811dfd3a136ff482c6d84fd19e6545bd76b60804)

Author SHA1 Message Date
Andrew Nicols 811dfd3a13
Support schemeless funding URLs
The [GitHub documentation][1] for FUNDING.yml specifically notes that if a
custom URL is in the Array format, and includes `:` then it must be
quoted.

From this we can infer that the custom URL does not have to contain a
`:` at all.

The example for a Custom URL also gives an example of an unquoted URL
without any `:` character:

```
custom: ["https://www.paypal.me/octocat", octocat.com]
```

However if a repository uses a URL in this format it is currently
rejected because it does not specify a scheme. Furthermore the
`parse_url` method treats the `octocat.com` example as a path and not a
host. The same is true for URLs such as
`octocat.com/funding/example.html`.

This patch adds an additional allowance for the URL filter to capture
the case where a URL has no scheme or host, but does have a path.

[1]: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository#about-funding-files
2024-12-17 22:22:26 +08: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 8f87ab3ea0
Update changelog 2024-11-17 13:12:53 +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 2e83ead40c
Allow react/promise 2.x again, fixes #12188 2024-11-15 13:53:30 +01:00
Jordi Boggiano 23d1030c73
phpstan type fixes 2024-11-14 11:54:11 +01:00
Jordi Boggiano 8f24b67c3c
Try to fix lowest deps tests 2024-11-14 11:47:19 +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
Jordi Boggiano a39f57bcd7
Update deps 2024-11-14 11:05:18 +01:00
Jordi Boggiano 1e7857d682
Update docs with hint for avast disabling 2024-11-14 10:50:54 +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 f956683418
Update changelog 2024-10-29 16:12:00 +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 0a4c2a92aa
Update deps 2024-10-28 11:07:18 +01:00
Jordi Boggiano 186d78cde3
Add php-ext to array dumper 2024-10-24 11:38:45 +02:00
Alexis Urien 1310118101
Update authentication-for-private-packages.md (#12159)
Fix Command line inline http-basic command
2024-10-19 22:28:13 +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 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