Comments (8)
Created this issue based on the suggestion at Homebrew/homebrew-cask#170127 (comment):
You could file that with the
brew
tool to see if it's consider a bug.
from brew.
@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.
from brew.
It wouldn't say it's already downloaded in that case is what I'm thinking.
from brew.
I can't say for sure how long the cache lasts for the brew outdated
and brew upgrade
commands (I would need to do some further digging).
But the binary is being downloaded and cached when you run brew outdated --greedy
, and then brew upgrade chromium
installs the cached file if it is indeed different to what is currently installed.
from brew.
Oh, I was completely unaware that brew outdated --greedy
would download and cache the binary! Let me verify this as well as whether the cached file indeed changed and get back with my observations over the next few hours.
from brew.
If you run brew outdated --greedy --debug
you will be able to see exactly what actions it is taking.
from brew.
Thanks, that's right!
I do see the following:
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.3.1\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 13.6.7\)\ curl/8.4.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://download-chromium.appspot.com/dl/Mac\?type=snapshots
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.3.1\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 13.6.7\)\ curl/8.4.0 --header Accept-Language:\ en --retry 3 --fail --location --silent --head --request GET https://download-chromium.appspot.com/dl/Mac\?type=snapshots
However, two suggestive observations:
- The contents of chrome://version didn't change.
- The location mentioned in
Already downloaded: /Users/trss/Library/Caches/Homebrew/downloads/959aaf9ee2437d2161a6e3dd2443d23583f7a4569a3d5cda19ac82d9e02bc442--chrome-mac.zip
hasn't changed across many reinstalls.
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.
from brew.
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 brew outdated
!). So now I have a more or less definitive answer to your question.
@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.
This in fact is because of a newer version being available! :) Thank you.
from brew.
Related Issues (20)
- Run xattr -r -d com.apple.quarantine App.app on casks on Apple Silicon MacOS HOT 20
- Homebrew's brew alias is broken after update this morning on Debian machines HOT 2
- Are all of the `undef`s we use really necessary? HOT 27
- HOMEBREW_PIP_INDEX_URL is misleading and does not work-as-intended with some mirrors
- “Error: comparison of PkgVersion with String failed” when running `brew upgrade` HOT 3
- brew upgrade or install fails with comparison of PkgVersion with String HOT 1
- Brew link step fail if installing multiple formulae with common symlink using a system with symlinked /home HOT 6
- golang not update to 1.23.0 HOT 2
- Happened ruby runtime error on macOS Sequoia HOT 2
- Homebrew no longer correctly reads `HOMEBREW_DOCKER_REGISTRY_BASIC_AUTH_TOKEN` from /etc/homebrew/brew.env
- environment file variables are not honored
- `brew install` call `gh attestation verify` Disrespect `XDG_CACHE_HOME` HOT 3
- Fix failing tests and write other tests as well HOT 1
- Suggest to change the way to read file in export_homebrew_env_file HOT 4
- Add a more customizable ENV file loading process HOT 2
- Download does not start immediately, a lot of network traffic (file is downloaded twice?) HOT 5
- macos sequoia 15.1 : We do not provide support for this pre-release version. HOT 4
- `brew upgrade -s` does not build from source or error out HOT 7
- [Intentional or bug?] v4.3.19 `brew list` now outputs single column lists HOT 3
- MariaDB fails to start on Debian 12 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brew.