-
Notifications
You must be signed in to change notification settings - Fork 160
cli: Implement new compare-versions command
#1974
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
base: main
Are you sure you want to change the base?
Conversation
202f0c5 to
a4c9591
Compare
|
One thing that always bothered me about this argument with dpkg was having to check the exit code. Could we do something different? |
Certainly! Do you have something in mind? I guess the command could accept a |
No, I didn't have something specific in mind but your suggestion sounds good to me. |
Sometimes it's useful to check how two versions relate to one another. Inspired by Debian's `dpkg --compare-versions`, I decided to implement our very own version comparison CLI. Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>
25fe9fc to
8d8ac7f
Compare
Great. I've force-pushed an implementation of my idea. Let me know what you think. Thanks. |
And the See https://man.archlinux.org/man/apk-version.8.en for documentation |
It certainly fits the bill in a way, but I still believe it's useful to have melange's own version checker because, in the (unlikely?) scenario where we choose to deviate from apk's versioning scheme, having our own checker can really help. |
Sometimes it's useful to check how two versions relate to one another. Inspired by Debian's
dpkg --compare-versions, I decided to implement our very own version comparison CLI.