buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.44k stars 90 forks source link

[FR] Don't downgrade flag #133

Closed yurikoles closed 5 years ago

yurikoles commented 5 years ago

I had just bumped telegram-desktop-dev with cask-repair and when I run brew cu --all --yes I see:

[...]
==> Found outdated apps
[...]
2/2  telegram-desktop-dev       1.5.12   1.5.11   Y   [ FORCED ]
mkll commented 5 years ago

@yurikoles Try to use -f

yurikoles commented 5 years ago

@mkll

    -f  --force           Include apps that are marked as latest
                          (i.e. force-reinstall them).

I don't want that

mkll commented 5 years ago

Obviously, I misunderstood what you need.

muescha commented 5 years ago

the new version should not be included in the "outdated app" section

PS: i understand your issue right?

ondrejfuhrer commented 5 years ago

Hey @yurikoles , thanks for the suggestion, but not sure if that is easily possible. It would probably work fine if the version would be in some "1.1.1" format. But i.e. java has a version 8u202,b08:1961070e4c9b4e26a04e7f5a083f551e and there would need to be some sort of custom per cask comparator, where you can decide if it is greater or not.

I don't think that is going to change anytime soon and the "problem" you are describing here is just for a small number of people (that are cask contributors), not really work for anyone else.

Or do you see any other use case I'm missing here?

yurikoles commented 5 years ago

@ondrejfuhrer, yes you are right, it seems to break other apps.

muescha commented 5 years ago

maybe as a workaround it is possible to exclude it (until the cask formula is submitted to cask repo) with the pin version command?