-
Notifications
You must be signed in to change notification settings - Fork 152
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
Filter prereleases #159
Comments
It is possible. Here's an example... https://play.golang.org/p/Ix-OuFIQQoT If you're just looking for the version range... |
This works for me if I look for a fixed version like What i'm trying to achieve is get the latest release candidate version, regardless of what version it is. When I try the Is there any way to overcome this and get a constraint which tests positive only for Edit: i now understand why it behaves like this, it makes sense, but would still like to know if there is a way to find solution to the scenario above |
You can use 2 different constraints together. You can see some example at https://github.com/Masterminds/semver#caret-range-comparisons-major |
@hpdobrica Did you find a solution for your scenario? I was actually considering the same scenario, a range that would deploy any So given:
Then But at the same time if Took a look at caret ranges suggested by @mattfarina but don't see how I could use them to handle the scenario with a fixed range expression |
@aalvarezaph are you using the |
Second option, I am actually using the expression on a HelmRelease CR from Flux. If I'm not wrong this should be the function handling the logic. At the same time, I have now opted for not using RC's so don't want to waste your time on this @mattfarina (but if you have a direct answer it might be helpful for future readers of course) |
We encounter the same kind of issue for helm dependencies:
we have the following tags:
The only solution we have for now is:
But this requires to update the dependency field on each cycle or even worse since the dependency versionning is done using semantic-release. |
How would you exclude the released version, if you explicitly want to test a beta? |
Hi. Is there a way how to filter prereleases? Assuming the below versions (ordered):
Is it possible to select only the alpha versions, and ignore the betas?
The text was updated successfully, but these errors were encountered: