Stream: Miscellaneous

Topic: Homebrew issues

view this post on Zulip Michael Soegtrop (Aug 11 2022 at 13:06):

Since I am using MacPorts, I don't always know what to expect from Homebrew - but I use it in CI.

Recently I had errors of the form:

==> Downloading
Error: adwaita-icon-theme: Failed to download resource "harfbuzz_bottle_manifest"
The downloaded GitHub Packages manifest was corrupted or modified (it is not valid JSON):

I add a brew cleanup step in my CI, which brought me to:

==> Downloading
==> Downloading
Error: gtk+3: SHA256 mismatch
Expected: 254605e7c9a5f95f7e1aaec2d58e60c8cdaf4fde910e92a0a032938cb98efc57
Actual: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

Some people recommend to call

rm -rf /Users/myusername/Library/Caches/Homebrew/downloads/*

My question: is this normal? What is the most reliable / recommended way to get around this in CI?

Btw.: I am running Mac CI since quite a while now (2 years?) and never had such crap - it started a few days ago.
The errors are random and different in different runs.

view this post on Zulip Michael Soegtrop (Aug 11 2022 at 14:03):

brew cleanup && brew update seems to do the trick ...

Last updated: May 18 2024 at 10:02 UTC