Skip to content

apk: parse repeated revision suffixes#2228

Open
officialasishkumar wants to merge 1 commit into
chainguard-dev:mainfrom
officialasishkumar:apk-version-repeated-revisions
Open

apk: parse repeated revision suffixes#2228
officialasishkumar wants to merge 1 commit into
chainguard-dev:mainfrom
officialasishkumar:apk-version-repeated-revisions

Conversation

@officialasishkumar
Copy link
Copy Markdown

Summary

  • accept versions with repeated trailing -rN revision suffixes such as 1.1.0-r1-r0
  • compare repeated revision suffixes token by token after the existing version components
  • add parser, invalid-input, and comparison coverage for repeated revision suffixes

Fixes #1704.

Validation

  • go test ./pkg/apk/apk -run 'TestParseVersion|TestCompareVersion|TestPackageVersion' -count=1\n- go test ./pkg/apk/apk -count=1\n- go test ./pkg/apk/... -count=1\n

@officialasishkumar officialasishkumar force-pushed the apk-version-repeated-revisions branch from 75c550f to 4e26389 Compare May 12, 2026 05:11
@github-actions github-actions Bot force-pushed the apk-version-repeated-revisions branch from 4e26389 to 2abe733 Compare May 12, 2026 05:16
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.

Some valid apk versions are not parsible with apk.ParseVersion

1 participant