This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Description
On CI re-runs with both ARM and Intel Linux, the Intel runner may download the cache for ARM, e.g. linux-self-hosted-1 downloaded bottles_ubuntu-22.04-arm at https://github.com/Homebrew/homebrew-core/actions/runs/14160991497/job/39666467650?pr=206362#step:4:36
==> Running Formulae#run!
==> Downloading artifacts matching pattern bottles{,_{linux,ubuntu}*} from 0edf95eb48a970e395721c19fbea24a897942a99
==> Downloading artifact bottles_ubuntu-22.04-arm from 0edf95eb48a970e395721c19fbea24a897942a99
|
bottle_specifier = if OS.linux? |
|
"{linux,ubuntu}" |
|
else |
|
"{macos-#{MacOS.version},#{MacOS.version}-#{Hardware::CPU.arch}}" |
|
end |
|
download_artifacts_from_previous_run!("bottles{,_#{bottle_specifier}*}", dry_run: args.dry_run?) |
A workaround could be to modify the pattern match to check for the arm suffix though checking for negation is not that clean.