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

Package open-telemetry/opentelemetry-auto-symfony can not be installed #1197

Closed
gnumoksha opened this issue Dec 22, 2023 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@gnumoksha
Copy link

Describe your environment
Linux
PHP 8.2.13
composer 2.6.6
opentelemetry module

Steps to reproduce

echo '{"require": {}}' > composer.json
composer require symfony/flex
composer require open-telemetry/opentelemetry-auto-symfony

What is the expected behavior?
Installation of open-telemetry/opentelemetry-auto-symfony in the latest version

What is the actual behavior?
The following error:

Cannot use open-telemetry/opentelemetry-auto-symfony's latest version 0.0.1 as it requires ext-otel_instrumentation * which is missing from your platform.

In PackageDiscoveryTrait.php line 318:
                                                                                                                                               
  Package open-telemetry/opentelemetry-auto-symfony has requirements incompatible with your PHP version, PHP extensions and Composer version:  
    - open-telemetry/opentelemetry-auto-symfony 0.0.1 requires ext-otel_instrumentation * but it is not present.

Additional context

@gnumoksha gnumoksha added the bug Something isn't working label Dec 22, 2023
@brettmc
Copy link
Collaborator

brettmc commented Dec 22, 2023

Many of the packages have gone GA now, so we removed the minimum-stability recommendation in the documentation. Please set your minimum stability to at least beta to be able to install the latest version.

@brettmc
Copy link
Collaborator

brettmc commented Jan 9, 2024

Closing, please re-open if the suggested solution does not work. Also, we're awaiting field testing and feedback on when to mark the library as 1.0.0, so please do provide some feedback if it works as expected for you (or not!)

@brettmc brettmc closed this as completed Jan 9, 2024
@AustinReeseKipsu
Copy link

Documentation continues to say nothing about the minimum-stability configuration, despite it being a common error.

@cmnemoi
Copy link

cmnemoi commented Apr 30, 2024

Please set your minimum stability to at least beta to be able to install the latest version.

I don't understand how to do that. :(

@brettmc
Copy link
Collaborator

brettmc commented Apr 30, 2024

I don't understand how to do that. :(

https://getcomposer.org/doc/04-schema.md#minimum-stability

TL;DR: add "minimum-stability": "dev" to your composer.json

@Mahfouz98
Copy link

Finally this works for me when i used specific version of
open-telemetry/opentelemetry-auto-symfony:dev-main

I have used before open-telemetry/opentelemetry-auto-symfony and I thought that it should grap the latest version but obviously it was the First version 0.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants