-
Notifications
You must be signed in to change notification settings - Fork 3
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
Don't treat x in pre-release and build metadata identifiers as a wild… #4
Don't treat x in pre-release and build metadata identifiers as a wild… #4
Conversation
1426926
to
6d25636
Compare
In the absence of CI pushd v4 && go test -v ./... && popd passes ✅ |
6d25636
to
ecd11d2
Compare
I am not an expert at semver, however the changes looks good to me. |
In the upstream PR this test fails:
|
…card Signed-off-by: Max Brauer <[email protected]>
ecd11d2
to
e1ecfdc
Compare
Thank you for bringing that up, @Zebradil! I wasn't aware of the pending (since 3y! 😆) blang#76. However, after studying it I partially incorporated the suggested changes here. The test for @Zebradil @praveenrewar ready for review! 🙇🏻 Fwiw, I don't think we really consider github.com/blang/semver "upstream upstream" anymore since it is no longer maintained and github.com/carvel-dev/semver is ahead by one or two fixes and features. I may be wrong here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
By the way, I think it worth considering switching to a more popular and better maintained semver library, for example this one: https://github.com/Masterminds/semver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Zebradil I would tend to agree but we would have to ensure that the features that exist in this repo also exist in that semver library, so some work needs to be done to ensure it. |
Agree, it'd probably require a lot of effort without immediate benefits. |
…card
I don't think we would want to extend logic to wildcards inside pre-release and build metadata identifiers.
Would need flow up through vendir into kapp-controller.
refs:
x
kapp-controller#1518