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
The use of valid Composer php version range syntax, breaks CI runs. Worse, the error message is worse than useless!
How to reproduce
Add a ci.yml workflow to any Silverstripe module project following an example taken from e.g. silverstripe/framework
Your Silverstripe module uses the legacy Composer single pipe php version-range syntax (which is still valid)
Observe a CI run break with a braindead error message in the "Generate Matrix" step:
PHP Fatal error: Uncaught Exception: No valid PHP version allowed in /home/runner/work/_actions/silverstripe/gha-generate-matrix/v1/job_creator.php:283
What on earth does "No valid PHP version allowed" even mean! I think that should be "No valid PHP version found".
Possible Solution
The code here should be patched to permit both syntaxes as follows:
Module version(s) affected
v1
Description
The use of valid Composer php version range syntax, breaks CI runs. Worse, the error message is worse than useless!
How to reproduce
ci.yml
workflow to any Silverstripe module project following an example taken from e.g.silverstripe/framework
What on earth does "No valid PHP version allowed" even mean! I think that should be "No valid PHP version found".
Possible Solution
The code here should be patched to permit both syntaxes as follows:
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: