Closed beberlei closed 3 years ago
In Composer 2, a new magic cmponent composer-runtime-api was added, that when present generates a magic class Composer\InstalledVersions that is available in every script. This must be copied to exist in every component.
composer-runtime-api
Composer\InstalledVersions
That is if either the root package, or any dependency of the monorepo package has a dependency on composer-runtime-api, then Composer\InstalledVersions must be generated as its done in FilesystemRepository: https://github.com/composer/composer/blob/master/src/Composer/Repository/FilesystemRepository.php#L130-L138
FilesystemRepository
In Composer 2, a new magic cmponent
composer-runtime-api
was added, that when present generates a magic classComposer\InstalledVersions
that is available in every script. This must be copied to exist in every component.That is if either the root package, or any dependency of the monorepo package has a dependency on
composer-runtime-api
, thenComposer\InstalledVersions
must be generated as its done inFilesystemRepository
: https://github.com/composer/composer/blob/master/src/Composer/Repository/FilesystemRepository.php#L130-L138