GithubHelp home page GithubHelp logo

Comments (8)

trss avatar trss commented on September 25, 2024

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.

bevanjkay avatar bevanjkay commented on September 25, 2024

@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.

trss avatar trss commented on September 25, 2024

It wouldn't say it's already downloaded in that case is what I'm thinking.

from brew.

bevanjkay avatar bevanjkay commented on September 25, 2024

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.

trss avatar trss commented on September 25, 2024

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.

bevanjkay avatar bevanjkay commented on September 25, 2024

If you run brew outdated --greedy --debug you will be able to see exactly what actions it is taking.

from brew.

trss avatar trss commented on September 25, 2024

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:

  1. The contents of chrome://version didn't change.
  2. 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.

trss avatar trss commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.