Skip to content

fix: fall back to a literal tag when a component ref is not a semver range - #1913

Merged
firecow merged 2 commits into
masterfrom
fix/relax-component-semver-assertion
Aug 4, 2026
Merged

fix: fall back to a literal tag when a component ref is not a semver range#1913
firecow merged 2 commits into
masterfrom
fix/relax-component-semver-assertion

Conversation

@firecow

@firecow firecow commented Aug 4, 2026

Copy link
Copy Markdown
Owner

A component ref of only digits matches the semver range pattern, but a tag literally named 9 or 0.1 is not valid semver, so range resolution found nothing and the assertion fired instead of using the ref as a plain tag. Fixes #1604.


Summary by cubic

Fall back to a literal Git tag when a component ref looks like a semver range but isn’t valid semver (e.g., 9, 0.1). If range resolution finds nothing but the tag exists, accept it instead of asserting, and add an integration test for @1.

Written for commit 5ccab0e. Summary will update on new commits.

Review in cubic

…range

A ref of only digits matches the semver range pattern, but a tag literally
named 9 or 0.1 is not valid semver, so range resolution found nothing and
the assertion fired instead of using the ref as-is.
@firecow firecow self-assigned this Aug 4, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@sonarqubecloud

sonarqubecloud Bot commented Aug 4, 2026

Copy link
Copy Markdown

@firecow
firecow merged commit 41eea11 into master Aug 4, 2026
16 checks passed
@firecow
firecow deleted the fix/relax-component-semver-assertion branch August 4, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Component versions with a tag of a only numbers fails - The ref (9) is invalid

1 participant