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 ./... && popdpasses ✅ |
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 <mbrauer@vmware.com>
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. |
Zebradil
left a comment
There was a problem hiding this comment.
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
|
@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:
xkapp-controller#1518