-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Reinstall happening even when downloaded artifact is the same #17352
Comments
Created this issue based on the suggestion at Homebrew/homebrew-cask#170127 (comment):
|
@trss Are you sure this isn't because there is actually a newer version available after some time? Upstream sometimes updates the app multiple times within an hour. |
It wouldn't say it's already downloaded in that case is what I'm thinking. |
I can't say for sure how long the cache lasts for the |
Oh, I was completely unaware that |
If you run |
Thanks, that's right! I do see the following:
However, two suggestive observations:
Looking forward to know from you whether the second one can be considered conclusive assuming you know how the caching works, specifically the generation of the cache file name. |
Obvious next step was to make a copy of the binary and compare with the newly downloaded one and they differ! Also, the created/modified timestamp of the file jumps each time it downloads (during
This in fact is because of a newer version being available! :) Thank you. |
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
To keep
chromium
up to date, I didbrew upgrade chromium
whenbrew outdated --greedy
listedchromium
. But despite no upgrade needed which is evident from the warning that the downloaded artifact has not changed, it reinstallschromium
.What happened (include all command output)?
After 10 mins:
After about an hour:
What did you expect to happen?
Chromium never gets reinstalled since the downloaded artifact never changed.
Step-by-step reproduction instructions (by running
brew
commands)brew install chromium
brew outdated --greedy
brew upgrade chromium
brew outdated --greedy
listschromium
which for me takes between half to one hour.brew upgrade chromium
The text was updated successfully, but these errors were encountered: