-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Don't run update on casks with :latest
when the artifacts haven't changed
#11513
Comments
Why are you using |
For all of my apps that use
|
Gotcha, thanks. Yes, this seems like desirable behaviour then. |
@Logicer16 In the meantime this is the command I use to run a greedy upgrade on my casks - I would recommend adding |
@bevanjkay Your command works for updating casks using |
@Logicer16 sorry, you are correct I misread your issue. I'll have a further dig. The PR I did submit will be useful for my use case anyway. |
:latest
when the installer hasn't changed:latest
when the installer hasn't changed
@bevanjkay any more thoughts here? |
I've been looking at this recently and I thought I'd add my 2 cents. The idea of checking the installer was a good one but probably won't work. There are a bunch of different artifacts used to install new casks and those don't necessarily come with a single installer that can be easily compared to the new one. So I think that idea is out. The simplest idea I've been able to come up with would be to just store some file metadata associated with the original downloaded file, the one associated with the |
:latest
when the installer hasn't changed:latest
when the artifacts hasn't changed
:latest
when the artifacts hasn't changed:latest
when the artifacts haven't changed
@apainintheneck I agree with what you're saying. Installer probably wasn't the best term. Most artifact stanzas are just files for brew to install. I've change my description to use "artifacts" instead to match what the docs call them. As the Seen as brew already uses sha256 hashes, that can be used to check if there's any changes. As for storing it, it could be kept either individually, probably in a file seperate from |
Provide a detailed description of the proposed feature
When running
brew upgrade --greedy
, if the artifacts (i.e. files to install) for a cask usingversion :latest
has not changed since the last successful install. An example of how this might be done is to compare the hash of the artifacts before and after the download and only installing if they don't match.What is the motivation for the feature?
Installing casks that use
version :latest
each timebrew upgrade --greedy
when the artifacts is unchanged is unnecessary, time consuming, resource consuming, as well as potentially interrupting the user's workflow if they relaunch the application, thinking there's new updates.How will the feature be relevant to at least 90% of Homebrew users?
Prevent issues stated in "motivation"
What alternatives to the feature have been considered?
version :latest
each timebrew upgrade --greedy
when the artifacts is unchanged - see "motivation"The text was updated successfully, but these errors were encountered: