Closed stof closed 4 years ago
Yeah 1.10.2 and 1.11.0 need to be backported here it seems.. @nicolas-grekas if you feel like helping out with this again :)
2.0 from upstream should totally fix this, but requires Composer 2 :sweat_smile: https://github.com/Ocramius/PackageVersions/pull/155 It should be backported too, it should be the final step of the upgrade path.
I guess yeah. The waste of time goes on..
About 2.0 I am not 100% sure if it matters, at that point you might as well be using the Composer 2 API directly as 2.0 requires composer 2 anyway..
The
ocramius/package-versions
API supports passing the name of the root package togetVersion
(and exposes a constant holding it). TheComposer/InstalledVersions
API does not support the root package ingetVersion
(only dependencies are there), but has a separate API to access the info about the root package. But the fallback implementation does not account for it.