David Zülke
008c8ed11a
Fix lib-curl-openssl parsing for SecureTransport ( #11534 )
...
On macOS, if libcurl is built against SecureTransport, the platform repository will contain an invalid package name:
% composer show --platform | grep curl
ext-curl 8.2.7 The curl PHP extension
lib-curl 8.1.2 The curl library
lib-curl-(securetransport) openssl 3.1.1 curl (securetransport) openss...
lib-curl-libssh2 1.11.0 curl libssh2 version
lib-curl-zlib 1.2.11 curl zlib version
This change fixes it:
% bin/composer show --platform | grep curl
lib-curl 8.1.2 The curl library
lib-curl-libssh2 1.11.0 curl libssh2 version
lib-curl-securetransport 3.1.1 curl (securetransport) openssl ...
lib-curl-zlib 1.2.11 curl zlib version
(second column width difference comes from the Composer dev version number)
2023-09-28 16:04:05 +02:00
Tom Klingenberg
b29be2f56b
COMPOSER_DISABLE_NETWORK aware `diagnose` checks; SKIP output ( #11597 )
...
Make `diagnose` checks aware of COMPOSER_DISABLE_NETWORK (true) and skip
Composer network operations that would otherwise spill stack traces into
diagnostic messages and taint the result as error while the check itself
is not applicable/useful within the environment.
`COMPOSER_DISABLE_NETWORK` was released with [2.0.0-alpha1] and intro-
duced in fc03ab9bb
(Add COMPOSER_DISABLE_NETWORK env var for debugging,
2019-01-14).
The previous behaviour was to exit with a status of two (2), denoting an
error.
The new behaviour is to exit with a status of zero (0), showing the
successful skipping of diagnostics that can only be run when Composer
network is enabled - not disabled.
SKIP output is updated and streamlined.
NOTE: The "prime" Value
It is irrelevant for diagnose checks, as all diagnostic checks that
spilled were with the HTTP Downloader and the check is aligned (both
"1" or "prime" values disable):
(bool) Platform::getEnv('COMPOSER_DISABLE_NETWORK')
NOTE: Not Affected
* The `allow_url_fopen` diagnostic check, platform related
* The `disable-tls` setting related HTTP Downloader creation warning
[2.0.0-alpha1]: <https://getcomposer.org/changelog/2.0.0-alpha1 > "released 2020-06-03"
2023-09-28 15:53:56 +02:00
Jordi Boggiano
90f8d01614
Fix loading of root aliases on path repo packages when doing partial updates, fixes #11630 ( #11632 )
2023-09-28 15:49:28 +02:00
Jordi Boggiano
d12ed3d68d
Fix return type of InstalledVersions::getInstalled, fixes #11304
2023-09-28 15:48:38 +02:00
Jordi Boggiano
a75da0efe2
Update deps
2023-09-28 15:18:57 +02:00
Attia A. Ahmed
3d5f475703
Fix broken junctions leading to installation failure on Windows ( #11550 )
2023-07-21 10:58:54 +02:00
Stefan Grootscholten
77e89fb3e4
Fix authentication issues with private bitbucket repos ( #11464 )
2023-05-23 23:06:48 +02:00
Jordi Boggiano
5f6f0aeaf4
Reverting release version changes
2023-02-15 13:07:41 +01:00
Jordi Boggiano
978198befc
Release 2.2.21
2023-02-15 13:07:40 +01:00
Jordi Boggiano
45cef89a5d
Update changelog
2023-02-15 13:07:23 +01:00
Nicolas Grekas
57b47301ed
Added optional plugin check in PluginInstaller ( #11326 )
2023-02-14 11:48:42 +01:00
Jordi Boggiano
5e5aaf7ada
Reverting release version changes
2023-02-10 14:11:11 +01:00
Jordi Boggiano
b4850827d8
Release 2.2.20
2023-02-10 14:11:10 +01:00
Jordi Boggiano
6e74b00221
Update changelog
2023-02-10 14:10:28 +01:00
Nicolas Grekas
2a8efc7a85
Add extra.plugin-optional to auto-disable plugins in non-interactive mode ( #11316 )
2023-02-10 14:01:11 +01:00
Jordi Boggiano
67f5892a5d
Reverting release version changes
2023-02-04 14:54:48 +01:00
Jordi Boggiano
30ff21a9af
Release 2.2.19
2023-02-04 14:54:48 +01:00
Jordi Boggiano
02c9a3b262
Update changelog
2023-02-04 14:53:50 +01:00
PrinsFrank
fd62c6eb58
Use lowercase Github ratelimit headers to determine the ratelimit limit and reset time ( #11194 )
...
https://github.com/github/docs/pull/14912
2023-02-04 14:46:38 +01:00
Jordi Boggiano
bf451bd089
Allow underscores in cache keys to avoid conflicts with package names containing underscore vs dashes, fixes #11224 ( #11229 )
2023-02-04 14:45:11 +01:00
Jordi Boggiano
ef21de5232
Update deps
2023-01-11 10:14:47 +01:00
Jordi Boggiano
a30299b103
Improve compatibility with modern ClassLoader instances
...
Fixes #11234
2022-12-22 12:48:33 +01:00
Ayesh Karunaratne
b067e96021
Update URL masking patterns for new GitHub fine-grained PATs
...
Updates GitHub Personal Access Token regex pattern to detect new [fine-grained PATs](https://github.blog/changelog/2022-10-18-introducing-fine-grained-personal-access-tokens/ )
2022-10-25 15:08:16 +02:00
Jordi Boggiano
8a8c50c3a6
Fix handling of upper-bound platform req ignores to not act on conflicts ( #11037 )
...
* Fix handling of upper-bound platform req ignores to not act on conflicts, fixes #11020
* Optimization
2022-09-13 15:16:41 +02:00
Kuba Werłos
44f9b8040e
Fix typo in remove command
2022-09-13 15:10:03 +02:00
Ondřej Mirtes
07016fe326
Config - always respect COMPOSER_DISCARD_CHANGES
2022-08-30 14:06:38 +02:00
Alex
7133a0d717
Update release.yml
2022-08-30 14:04:50 +02:00
Jordi Boggiano
6c6e81ee80
Reverting release version changes
2022-08-20 11:33:38 +02:00
Jordi Boggiano
8417590766
Release 2.2.18
2022-08-20 11:33:38 +02:00
Jordi Boggiano
78c0282b34
Update changelog
2022-08-20 11:33:21 +02:00
Jordi Boggiano
917748c996
Fix cache invalidation issue when a git tag gets created on an old ref after the cache is populated, fixes #11002 ( #11004 )
2022-08-20 09:50:39 +02:00
Yehuda Katz
e823f24940
Match default choice to actual default ( #11010 )
...
The 'Y' is capital, so Yes should be the default choice and is what most people would want, but No was the default.
2022-08-20 09:45:34 +02:00
Christopher Charbonneau Wells
2152b20a94
Correct prohibits/why-not example command ( #10994 )
...
Running the example command `composer prohibits php:8` returns an error, "Not enough arguments (missing: "version")."
2022-08-16 11:45:35 +02:00
Jordi Boggiano
104bf0d75d
Handle 404s gracefully when loading providers in ComposerRepo, fixes #10974
2022-08-16 11:44:21 +02:00
Jordi Boggiano
f2141dd3ea
Fix tests from #10985
2022-08-16 11:25:15 +02:00
Jordi Boggiano
598c1c7573
Fix phpstan error
2022-08-16 11:19:20 +02:00
Jordi Boggiano
6457a88aa1
Fix COMPOSER_NO_DEV to work with --update-no-dev for require/remove commands as well, refs #10995
2022-08-16 11:15:52 +02:00
Stephan
1f0bd51f55
GitHubDriver: stricter URL validation to avoid issues with undefined index owner ( #10985 )
2022-08-16 11:08:03 +02:00
Jordi Boggiano
b0674c421a
Update ca-bundle
2022-07-21 11:14:47 +02:00
Jordi Boggiano
9d90bc649d
Fix tests
2022-07-20 22:53:57 +02:00
Jordi Boggiano
623f903d62
Add support for +meta in hg version number, fixes #10955
2022-07-20 22:47:27 +02:00
Sam Litowitz
8d5bdaf443
Fixes #10938 : Do not display duplicate ignore extension hints
2022-07-17 13:02:12 +02:00
Jordi Boggiano
740af2bdb1
Add warning if constraint appears too narrow, refs #10943
2022-07-17 10:29:56 +02:00
Jordi Boggiano
93eb19e756
For custom composer.json paths the default cwd should be that files directory, fixes ergebnis/composer-normalize#865, refs #10935
2022-07-17 10:22:07 +02:00
Jordi Boggiano
c5ff1e1fc6
Reverting release version changes
2022-07-13 15:27:38 +02:00
Jordi Boggiano
a8ab5070fb
Release 2.2.17
2022-07-13 15:27:38 +02:00
Jordi Boggiano
5cb24aaa81
Update changelog
2022-07-13 15:27:29 +02:00
Jordi Boggiano
b195f383f2
Always clone root package before adding it to a RootPackageRepo to avoid issues with plugins, fixes #10940
2022-07-13 15:10:15 +02:00
Jordi Boggiano
336a0d20c6
Add hint in create-project when it fails due to a missing allow-plugins in project, refs #10928
2022-07-13 14:38:54 +02:00
Jordi Boggiano
0e59fbb46e
Fix #10935 in a more generic way which fixes the issue for all Factory::create usages
2022-07-13 14:13:02 +02:00