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 https://ghcr.io/v2/homebrew/core/harfbuzz/manifests/5.1.0 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 https://ghcr.io/v2/homebrew/core/atk/manifests/2.38.0 ==> Downloading https://ghcr.io/v2/homebrew/core/atk/blobs/sha256:254605e7c9a5f95f7e1aaec2d58e60c8cdaf4fde910e92a0a032938cb98efc57 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.
brew cleanup && brew update seems to do the trick ...
Last updated: Jan 29 2023 at 19:02 UTC