Skip to content

Match version prefixes only at component boundaries - #988

Open
hsbt wants to merge 1 commit into
masterfrom
claude/sharp-mendel-8ef60a
Open

hsbt wants to merge 1 commit into
masterfrom
claude/sharp-mendel-8ef60a

Conversation

@hsbt

@hsbt hsbt commented Nov 27, 2026

Copy link
Copy Markdown
Member

A version that does not exist resolved to a different release sharing its leading characters: mswin-3.4.1 installed 3.4.13, mswin-4.0.1 installed 4.0.10, and jruby-9.4.1 installed 9.4.16.0 instead of 9.4.1.0, as reported in #979 (comment).

A partial version now matches only when it ends between version components, so 3.4.1 no longer matches 3.4.13. Engine-only and short versions such as ruby, jruby, 3.4 and 9.4 still resolve to the latest release, and 3.4.0-preview style prefixes are unchanged. A plain parsedVersion + '.' check would have broken the engine-only case, because the empty version would then match nothing.

Across every version list, only these inputs change: mswin-3.4.1, mswin-4.0.1, jruby-9.3.1, jruby-9.4.1, and 2.2.1 on Linux, which now fails instead of installing 2.2.10.

Generated with Claude Code

A partial version such as mswin-3.4.1 resolved to 3.4.13 and jruby-9.4.1 to 9.4.16.0, because any version starting with the input string was accepted. Require the prefix to end between components, so these fail as unknown or pick 9.4.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant