You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If framework is installed without recipe-core, when it attempts to find the version of that package an OutOfBoundsException is thrown by Composer’s InstalledVersions::getPrettyVersion() as the package isn’t installed.
The old code would quietly skip the package if it wasn’t installed (it’d never be encountered in the loop):
Module version(s) affected
5.2.0
Description
Appears to be a regression from #11157
If framework is installed without recipe-core, when it attempts to find the version of that package an
OutOfBoundsException
is thrown by Composer’sInstalledVersions::getPrettyVersion()
as the package isn’t installed.The old code would quietly skip the package if it wasn’t installed (it’d never be encountered in the loop):
silverstripe-framework/src/Core/Manifest/VersionProvider.php
Lines 191 to 195 in cca2f70
Suggest we just add an
if (InstalledVersions::isInstalled($module))
check to the new code before trying to fetch the pretty version:silverstripe-framework/src/Core/Manifest/VersionProvider.php
Lines 191 to 193 in 97a8da8
How to reproduce
Install 5.2 without using recipe-core
Possible Solution
No response
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)PRs
The text was updated successfully, but these errors were encountered: