Skip to content

fix: prefix result bad semver#971

Open
didierm-perso wants to merge 2 commits intogetwud:mainfrom
didierm-perso:fix/prefix_bad_semver
Open

fix: prefix result bad semver#971
didierm-perso wants to merge 2 commits intogetwud:mainfrom
didierm-perso:fix/prefix_bad_semver

Conversation

@didierm-perso
Copy link
Copy Markdown

Issue #970

This PR is not prefect but the regexp now checks if we have at least x.y.z to start the 2nd group. This group will be used for the semver compare.
This will work with tag like amd64-1.2.3 but not with tag like amd64-1 or amd64-1.2 (those tags should use digest and not semver) If we want to keep amd64-1 or amd64-1.2 we'll need to use the include tags.

Fix PR #839

@thecoshman
Copy link
Copy Markdown

🤔 Not dug into the full detail of this area of the code... but isn't the problem more that this regex isn't expecting literal . in the potential 'semver' part of the tag? A regex a bit like (\d+\.?)+ as the 'core' of finding semver of the top of my head feels like it'll do a better job of trying to find the semver from tags...

Also... is there no testing around this area?

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