Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing of semver according to official specification #67

Closed
wants to merge 4 commits into from

Conversation

cbullo
Copy link

@cbullo cbullo commented Feb 14, 2024

According to Build Metadata it should be possible to use '+' sign to annotate version with build metadata.
However, the regex packager.go:500 doesn't allow that.

Using this string as a chart version will fail: 0.0.9+63-gf336c00.

Copy link
Owner

@abrisco abrisco left a comment

Choose a reason for hiding this comment

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

Thanks! Do you think you could add some kind of regression testing for this? Maybe a unit test on the packager.go or perhaps an integration test where a package is built that has some crazy version that requires the full extent of this regex pattern? I would hate to break this in a future change 😅

helm/private/packager/packager.go Show resolved Hide resolved
@cbullo
Copy link
Author

cbullo commented Feb 15, 2024

I'll write some tests, just need to learn Go for this :D
Can you help me understand why the existing checks fail now?

@abrisco
Copy link
Owner

abrisco commented May 19, 2024

I've gone and merged #82 which should fix this issue, thank you for the pull request and sorry for any delays here 😄

@abrisco abrisco closed this May 19, 2024
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