-
Notifications
You must be signed in to change notification settings - Fork 9
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
deprecated PackageVersions\Versions class contains dev packages when using composer install --no-dev
#17
Comments
Can you check if it works with the latest snapshot ( |
Ah sorry I misread here.. It does seem indeed to contain all packages including dev deps.. But it seems like this was always the case with ocramius/package-versions, i.e. https://github.com/Ocramius/PackageVersions/blob/1.11.x/src/PackageVersions/Installer.php#L217 I guess the issue is now it reads from the Composer's native implementation if it's available and that one correctly only has the installed stuff, so it should filter which versions are listed accordingly. In any case.. people should really migrate to Composer\InstalledVersions. If you can communicate that to sentry/sentry that'd be good, if the API is available they should use that, if not they can use this plugin still for Composer 1 users. |
OK you can try updating to https://github.com/composer/package-versions-deprecated/releases/tag/1.11.99.1 |
that's precisely what I've done. I've replaced the sentry ModuleIntegration with a better one that makes use of composer 2. The sentry implementation is shitty anyways, because it relies on that |
🤦♂️ OK, still curious if you can confirm the fix works for you though. |
When running
composer install --no-dev
(composer v2.0.4)the generated
PackageVersions\Versions
class will still contain information about dev-dependencies.In our case, this badly breaks
sentry/sentry
which then proceeds to query for additional information for such packages and then ends up with anOutOfBounds
exception being thrown by composer's owncomposer/InstalledVersions.php
I'll do some investigations as to the cause
The text was updated successfully, but these errors were encountered: