buo / homebrew-cask-upgrade

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

Manually mark auto_update as false #107

Closed Enzime closed 5 years ago

Enzime commented 5 years ago

Some programs like Firefox allow you to configure whether or not they auto update, and by disabling this I would like homebrew-cask-upgrade to take over with managing the latest version. By allowing users to mark auto_update as false this would mean that a full upgrade could be done without using -a meaning that other apps which actually automatically update won't get updated by homebrew-cask-upgrade.

ondrejfuhrer commented 5 years ago

Hey @Enzime that is not possible. The auto_update flag is a part of the whole cask structure which is out of the scope of this tap, so there is no way we can override that (and we don't want to).

That is actually the reason why the -a flag is there - if you would like to manage the auto-update apps yourself, you have to use it, otherwise don't.

Enzime commented 5 years ago

The reason why this flag would be useful on a per application basis is because -a attempts to update all apps however some apps don't support disabling auto_update and would rather not unnecessarily update them. So if I could mark the ones where I had disabled their inbuilt auto updating mechanism then it'd be nice to be able to update them without specifying -a.

muescha commented 5 years ago

This is it possible with:

brew cu firefox -a

ondrejfuhrer commented 5 years ago

@Enzime exactly as @muescha suggested. I don't think we will implement any super special behaviour here, since this is how it was designed.