Repository navigation
Fix RC stability suffix getting an extra -dev in < and >= constraints - #187
Merged
Merged
Conversation
The check for an explicit stability suffix lowercased the version but matched it against a case-sensitive regex containing "RC", so it never matched. `>=1.0-RC1` was parsed as `>=1.0.0.0-RC1-dev` whereas `>=1.0-beta1` correctly gave `>=1.0.0.0-beta1`.
danog
added a commit
to danog/SecurityAdvisoriesBuilder
that referenced
this pull request
Oct 21, 2026
composer/semver 3.5.0 (composer/semver#187) stopped adding a `-dev` suffix to `>=`/`<` constraints on RC versions. Update test expectations accordingly and require the new version, so the lowest/locked/latest dependency sets all behave the same. Claude-Session: https://claude.ai/code/session_01H6sGqzAHBMJGoz2xuNBzp8
ChristopherTuring
pushed a commit
to PreventiveMeasures/libraries
that referenced
this pull request
Nov 3, 2026
composer/semver 3.5 (composer/semver#187), which Composer 2.11 ships, matches the modifier of a `<` or `>=` constraint caselessly instead of on the lowered text, so `-RC1` now counts as a modifier the way `-beta1` already did, and no `-dev` is added. GitHub's runners now have Composer 2.11, so the differential test failed on `>=1p3 <1-RC1|trunk`. The port follows 3.5 and later. Against an older Composer, which the test detects by asking it, constraints with an `rc` in them are left out of the comparison. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01M1K1Mt8jcz94iFhsJAEpzU
ChALkeR
pushed a commit
to PreventiveMeasures/libraries
that referenced
this pull request
Nov 3, 2026
…388) composer/semver 3.5 (composer/semver#187), which Composer 2.11 ships, matches the modifier of a `<` or `>=` constraint caselessly instead of on the lowered text, so `-RC1` now counts as a modifier the way `-beta1` already did, and no `-dev` is added. GitHub's runners now have Composer 2.11, so the differential test failed on `>=1p3 <1-RC1|trunk`. The port follows 3.5 and later. Against an older Composer, which the test detects by asking it, constraints with an `rc` in them are left out of the comparison. Claude-Session: https://claude.ai/code/session_01M1K1Mt8jcz94iFhsJAEpzU Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The check for an explicit stability suffix lowercased the version but matched it against a case-sensitive regex containing "RC", so it never matched.
>=1.0-RC1was parsed as>=1.0.0.0-RC1-devwhereas>=1.0-beta1correctly gave>=1.0.0.0-beta1.