Add support for prefix of any character#79
Conversation
|
Is it realistic to get this pull request merged? |
|
@hashicorp/team-ip-compliance I am here once again asking for a review |
Signed-off-by: Lasse Gaardsholt <lasse.gaardsholt@bestseller.com>
It changes what “a version” meansBefore: After this PR: Example: Before → error (good signal you passed a tag, not a version) The PR says “any prefix”, but it’s not really “any”The PR title says “prefix of any character”.
So these do NOT work: So the wording is misleading, and users will assume broader support than actually exists. go-version has always been strict by design. This PR:
My Observation: go-version has always been strict by design.
|
I understand the need to be strict in this package. Do you propose that we scrap this PR, or how do we move forward from this? |
Hey! You've made a good point here, so I fiddled and came up with a solution that implements the opt-in functionality without breaking changes. This is what I came up with. Was it something in those lines you were also thinking? |
|
Hey @OrKarstoft , We are discussing with our internal teams to identify if it's feasible to extend this feature in this repo and the impact. We will get back to you ASAP. |
Hey @mohanmanikanta2299, Thanks for letting me know. |
|
Hey @OrKarstoft, Thanks for your patience here, and for continuing to engage on this. |
|
Hey @ssagarverma, Thank you very much. I've implemented the changes in the PR, along with tests and documentation. Let me know if there's anything you'd like differently. |
OrKarstoft
left a comment
There was a problem hiding this comment.
@ssagarverma Thank you for your review and your patience! I've made some changes as a result of your review, but I have additional questions regarding the cross-prefix versions comparison.
|
@OrKarstoft I’ve added a comment along with a small patch that should help us move this PR toward closure. Really appreciate your continued engagement and patience here 🫡. |
Add support for version prefixes in NewVersion and related methods
|
@ssagarverma Thank you for collaborating on this! I reviewed your PR, and it looks very good. Nevertheless, I've enjoyed this contribution, even though it's taken forever. |
Indeed! These things can sometimes take a bit longer due to factors like rotating reviewers and other priorities, so the delay isn’t intentional but more of a side effect of the process. What matters most is arriving at the right solution, even if it takes a few iterations. The back-and-forth in these review cycles is actually quite valuable, it helps ensure the final change feels natural and easy to adopt for a wide range of users. Cheers ✌️ |
To support releases with other prefixes than "v", such as the
ingress-nginxhttps://github.com/kubernetes/ingress-nginx/releases