Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.4 regression: composer show --platform requires a composer.json #11046

Closed
dzuelke opened this issue Sep 2, 2022 · 0 comments
Closed

2.4 regression: composer show --platform requires a composer.json #11046

dzuelke opened this issue Sep 2, 2022 · 0 comments
Labels
Milestone

Comments

@dzuelke
Copy link
Contributor

dzuelke commented Sep 2, 2022

~ % cd $(mktemp -d)
tmp.cwO1AqLu % php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

tmp.cwO1AqLu % php composer-setup.php --filename=composer-2.3.10 --version=2.3.10 
All settings correct for using Composer
Downloading...
Composer (version 2.3.10) successfully installed to: …/tmp.cwO1AqLu/composer-2.3.10
Use it: php composer-2.3.10

tmp.cwO1AqLu % php composer-setup.php --filename=composer-2.4.1 --version=2.4.1
All settings correct for using Composer
Downloading...
Composer (version 2.4.1) successfully installed to: …/tmp.cwO1AqLu/composer-2.4.1
Use it: php composer-2.4.1

Older versions let me list platform packages; this is useful in all kinds of scripts etc ("are the right extensions there", for instance):

tmp.cwO1AqLu % ./composer-2.3.10 show --platform
composer               2.3.10   Composer package
…
php                    8.1.5    The PHP interpreter
php-64bit              8.1.5    The PHP interpreter, 64bit
php-ipv6               8.1.5    The PHP interpreter, with IPv6 support

Since 2.4., this errors:

tmp.cwO1AqLu % ./composer-2.4.1 show --platform
Composer could not find a composer.json file in /private/var/folders/n9/nlkmp1dn0x9616hsy3bb2z4m0000gq/T/tmp.cwO1AqLu
To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
@Seldaek Seldaek added this to the 2.4 milestone Sep 2, 2022
@Seldaek Seldaek added the Bug label Sep 2, 2022
dzuelke added a commit to dzuelke/composer that referenced this issue Jul 4, 2023
… is present

Sort of related to composer#11046 (although this is not a regression, but didn't work before, either)
Seldaek pushed a commit that referenced this issue Jul 21, 2023
… is present (#11533)

Sort of related to #11046 (although this is not a regression, but didn't work before, either)
Seldaek pushed a commit that referenced this issue Sep 28, 2023
… is present (#11533)

Sort of related to #11046 (although this is not a regression, but didn't work before, either)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants