Fix PHP Gherkin->Messages dependency #1943
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When messages 18.0.0 was released, the constraint in gherkin/php/composer.json was changed to
dev-main||^17.0,^18.0
. This is incorrect because,
is AND. It should have beendev-main||^17.0||^18.0
Pre-release of gherkin 23.0.0 removed the
dev-main
and left it as^17.0,^18.0
. Despite visual inspection by me this was approved and released. It is currently uninstallable as a result.This removes the script that got rid of 'dev-main', fixes the constraint by removing
^17.0
as there is no php tag for that, and updates the messages script that adds new versions. Fixing this will require a23.0.1
tag :/The other issue was builds on main failing. This is because the local 'path repository' that makes gherkin install messages from local filesystem is unable to tell what version the checkout is. It's now forced to be 18.0.0 and only needs updating when gherkin breaks backward support for messages