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

Add argument to specify minimal version in cfbs generate-release-information #215

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

jakub-nt
Copy link
Contributor

@jakub-nt jakub-nt commented Dec 2, 2024

No description provided.

…ormation`

Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
@cf-bottom
Copy link

Thanks for submitting a pull request! Maybe @larsewi can review this?

@olehermanse olehermanse requested a review from larsewi December 3, 2024 14:19
Copy link
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

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

Some smaller comments, otherwise LGTM 🚀

cfbs/args.py Outdated Show resolved Hide resolved
cfbs/args.py Outdated Show resolved Hide resolved
@@ -120,3 +120,9 @@ def version_as_comparable_list_negated(version):
vcl[1] = [-x for x in vcl[1]]

return vcl


def version_is_at_least(version, min_version):
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to have a couple of versions compare functions in utils.py for the different comparison operators > , < , >= , <= , == , and != along with unit tests. This is probably out of the scope of this PR. But feel free to do that in a follow-up PR, if you are up for the challenge 😉 I believe we compare versions in multiple places throughout this project. cfbs add is one example.

Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com>
@larsewi larsewi merged commit 625a3e3 into cfengine:master Dec 5, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants