Skip to content

go/common/version: Trim pre-release suffixes#6447

Merged
peternose merged 1 commit intooasisprotocol:masterfrom
stefanb:trim-version-prerelease-suffixes
Jan 26, 2026
Merged

go/common/version: Trim pre-release suffixes#6447
peternose merged 1 commit intooasisprotocol:masterfrom
stefanb:trim-version-prerelease-suffixes

Conversation

@stefanb
Copy link
Contributor

@stefanb stefanb commented Jan 24, 2026

Updated version.FromString to trim 'rc', 'alpha', and 'beta' suffixes without hyphens when parsing version strings. Added test cases to ensure correct parsing of versions with pre-release suffixes.

Ref:

after this is merged and released it would need an update in https://github.com/oasisprotocol/cli

Thanks/Hvala!

@netlify
Copy link

netlify bot commented Jan 24, 2026

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit 72e4397
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-oasis-core/deploys/697766ce3849180007692b27

Copy link
Member

@kostko kostko left a comment

Choose a reason for hiding this comment

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

Looks good to me, please also add a changelog fragment.

@stefanb stefanb force-pushed the trim-version-prerelease-suffixes branch from f0f14cf to 168786a Compare January 26, 2026 13:02
@peternose
Copy link
Collaborator

Rebase.

Updated version.FromString to trim 'rc', 'alpha', and 'beta' suffixes without
hyphens when parsing version strings. Added test cases to ensure correct
parsing of versions with pre-release suffixes.
@stefanb stefanb force-pushed the trim-version-prerelease-suffixes branch from 168786a to 72e4397 Compare January 26, 2026 13:06
@peternose peternose merged commit 75c40ac into oasisprotocol:master Jan 26, 2026
3 of 4 checks passed
@stefanb stefanb deleted the trim-version-prerelease-suffixes branch January 26, 2026 13:48
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.

3 participants