-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
brew cask upgrade
outline
#29301
Comments
This looks promising - may I suggest, though, that as a first step in this and to provide some testing, that The reason I suggest this is that it seems to me the proposal for |
@miccal No objections. Ideally they’ll be built at the same time anyway, and |
I second that, as we first need to figure out what |
Edited top post to give precedence to |
I think this is still needed. I've had several issues with the Slack app where the auto-update showed no updates, but there was an updated cask. I'm pretty busy, but I might be able to look into this next weekend. |
You should still be able to force updates for |
I have a similar issue with Dropbox, so I run I have always had issues whenever I force Dropbox to update. |
Small note: Even in those cases cases of Dropbox and Slack, presumably they’d still be auto-updated at some point and it might be that the apps are themselves delaying it on purpose (to prevent everyone contacting the server at once?). With that in mind, I don’t think we need to by default force those to update when the cask does. We might still ignore it. If a user knows an update was released and wants it right now, |
I like to be in the directory I am working in - don't ask me why, because I don't have an answer! |
I am using buo/homebrew-cask-upgrade successfully for over 6 months. For me it seems like
I just wanted to link to this project, as it is already written in ruby and maybe some of the code/ideas can be reused. |
@leipert As has been repeated ad nauseam and is even stated in that repo, those scripts are fragile and rely on unreliable features. By your own admission, that one is missing pretty major stuff. Lets please focus on building this right and natively, not retrofitting incomplete scripts that use user-facing features. Those are slow and can’t be trusted entirely. |
While I fully agree with what @vitorgalvao said, thank you @leipert for the heads up 👍 |
Would love to see a flag for both |
How? |
I agree. It would be nice to be able to force the update and outdated checks… For example, most apps that do auto update, have the option to opt in to automatic updates. Someone may turn that off in the app, and rely instead on hbc to do the updates.
I don't know why I would want to do that… But it might be a use case to consider.
|
With multiple maintainers and users asking for it, |
Changed |
What does |
I think within the context of "outdated" "--extensive" makes more sense (i.e. However, it gets confusing when there are two different options with basically do the same thing. Personally, I prefer "--force" (even |
And a minor nitpick - for "Behavior for |
What about |
Thank you. Fixed.
I feel
I fear that sends the wrong message. Just as people ran
I think it’s more beneficial to have a word users aren’t absolutely clear about and as such will need to read the docs, than one they think they are clear about when it actually means something else. |
Regarding those two statements:
I actually disable all autoupdates by blocking http(s) calls with Little Snitch for most apps and/or disabling the auto checks in the options, because I do not want them to send more information "home" than necessary and do not want to handle constant nagging/auto-downloads. I'd rather have manual updates with the help of brew cask, so I have control over when an updates happen and which apps will get updates. This brings me to my question: Would it make sense to have two different flags for Sorry for hijacking the discussion again and a big 👍 for all your work, you lovely maintainers :) |
@leipert That setup makes you an outlier. Just like changing the install directory to Blocking all auto-upgrades and upgrading manually is not common enough to be supported as a specific use-case and complicating the options. We might eventually reach the conclusion it is indeed worth it, but at this point I don’t see it. |
@vitorgalvao |
Good suggestions so far! While With Regarding Let’s consider simple words, like |
You're very welcome, @monouser7dig. It's always a pleasure to help others find what they're looking for. Now, back to my regularly scheduled lurking… |
I've got a question about > brew cask outdated --greedy
app1 (latest) != latest
app2 (latest) != latest
app3 (1.2.3) != 1.2.4
app4 (latest) != latest All is good so far, but I get this: > brew cask outdated --greedy | grep -v '(latest)'
app1
app2
app3
app4 And even: > brew cask outdated --greedy 2>&1 | grep -v '(latest)'
app1
app2
app3
app4 Is there a way to specify that I want that version information to be piped to my grep command instead of dropped? |
|
Just wanted to add this one here too in case it's relevant. Should there be a method of removing dependents and then adding them back again as part of updating casks? EDIT: Hmm, the pack might have been there after all. Still an interesting question. |
@claui I like your explanations regarding the |
@daylightbrightledlight That train as already left. Having two wildly different flags that mean the same thing is a recipe for confusion, so we won’t add |
@vitorgalvao Okay. I understand. Thanks for the support. |
Is there a reason, why |
|
How is the progress? |
@daylightbrightledlight No comments generally mean no progress. |
FYI: Just pointing out homebrew-cask-upgrade in case it might be relevant here. |
Almost there: Homebrew/brew#3396 |
This issue is meant to outline the desired behaviour of
upgrade
(andoutdated
). Marking asready to implement
but discussion is encouraged. Will keep this top post updated with the final decisions of the discussion.outdated
should be implemented first, to make sure we have a solid foundation.upgrade
should be built on top of itBehaviour of
brew cask outdated
:--greedy
, jump directly to step 5.auto_updates true
.version :latest
.Behaviour for
brew cask upgrade
:Same steps 1–5.
uninstall
andinstall
steps. Uninstalling is necessary to avoid leaving old traces of it when uninstallation procedures change.For those interested in giving a go at this, take a look at Homebrew/brew#1523. It should give you a starting point (but don’t feel obligated to use it). That specific PR has things that would need to be removed (
pin
/unpin
) and added (takeauto_updates
into account). If working on it, ideally you could commit to provide some further support for the feature for a little while (just enough to make sure the code itself is stable, not be tied to it ad eternum).There was an important consideration when thinking about this feature:
Some solutions were discussed, but ultimately it was argued they might not be needed or be detrimental at this stage, before we have a better understanding on how best to proceed:
Pinging @caskroom/maintainers. Any user is welcome to chime in.
The text was updated successfully, but these errors were encountered: