Skip to content

DL3041, DL3033: Handle RPM package epoch#1121

Merged
m-ildefons merged 1 commit intohadolint:masterfrom
m-ildefons:gh-1117
Sep 8, 2025
Merged

DL3041, DL3033: Handle RPM package epoch#1121
m-ildefons merged 1 commit intohadolint:masterfrom
m-ildefons:gh-1117

Conversation

@m-ildefons
Copy link
Copy Markdown
Member

In Fedora, RHEL and similar distributions, packages may have an epoch prefixed to their version. This is an integer separated by a colon from the actual version number. The epoch is used to make all packages sortable, regardless of whether the upstream project uses sortable version identifiers.
To deal with this, in Hadolint we must accept that a dnf or yum package may contain a colon in their version number.

related-to: #1117

In Fedora, RHEL and similar distributions, packages may have an epoch
prefixed to their version. This is an integer separated by a colon from
the actual version number. The epoch is used to make all packages
sortable, regardless of whether the upstream project uses sortable
version identifiers.
To deal with this, in Hadolint we must accept that a dnf or yum package
may contain a colon in their version number.

related-to: hadolint#1117

Signed-off-by: Moritz Röhrich <moritz@ildefons.de>
@m-ildefons m-ildefons self-assigned this Sep 3, 2025
@m-ildefons
Copy link
Copy Markdown
Member Author

@carlsmedstad would you like to review this?

@carlsmedstad
Copy link
Copy Markdown

Don't have any Haskell experience, so I'm not able to review the code - but I managed to build this branch and can confirm it fixes the issue. Thanks for getting to this so promply! :)

@m-ildefons m-ildefons merged commit c4184b2 into hadolint:master Sep 8, 2025
2 checks passed
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.

2 participants