You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checking composer.json: WARNING
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Checking platform settings: OK
Checking git settings: OK git version 2.37.3
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com oauth access: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0 87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B 0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 2.4.2
PHP version: 7.4.30
PHP binary path: /opt/homebrew/Cellar/php@7.4/7.4.30_1/bin/php
OpenSSL version: OpenSSL 1.1.1q 5 Jul 2022
cURL version: 7.85.0 libz 1.2.11 ssl (SecureTransport) OpenSSL/1.1.1q
zip: extension present, unzip present, 7-Zip not available
I am using the COMPOSER_PREFER_STABLE environment variable, but perhaps what I am actually looking for is something like an --ignore-stability option.
The text was updated successfully, but these errors were encountered:
localheinz
changed the title
Installing with COMPOSER_PREFER_STABLE=0 and --dry-run fails
Installing with COMPOSER_PREFER_STABLE=0 and --dry-run fails when the minimum stability is stable and package is not stable
Oct 12, 2022
localheinz
changed the title
Installing with COMPOSER_PREFER_STABLE=0 and --dry-run fails when the minimum stability is stable and package is not stable
Installing with COMPOSER_PREFER_STABLE=0 and --dry-run fails when minimum stability is stable and package is not stable
Oct 12, 2022
It is in fact unrelated to prefer stable. The issue is that when requiring a package with an explicit dev version like dev-latest, and your minimum-stability is <dev, composer notices you ask explicitly for dev there and it changes the minimum stability for that package to dev. Now in --dry-run the composer.json is not modified, so that does not happen as the constraint isn't there yet when loading the root package. The constraint then gets added to it in memory before passing it to the solver, but the flags weren't being extracted from the new constraints.
My
composer.json
:Output of
composer diagnose
:When I run this command:
I get the following output:
And I expected this to happen:
❗ Note that running
works fine, but it installs the dependencies, which I do not want, but (as pointed out above)
fails with a stability warning.
I am using the
COMPOSER_PREFER_STABLE
environment variable, but perhaps what I am actually looking for is something like an--ignore-stability
option.The text was updated successfully, but these errors were encountered: