cli: Implement new compare-versions command#1974
cli: Implement new compare-versions command#1974sergiodj wants to merge 1 commit intochainguard-dev:mainfrom
compare-versions command#1974Conversation
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.