Commit f01fb86
committed
cask: tolerate asymmetric variations in to_hash_with_variations
When a cask uses on_system blocks that legitimately omit some arches
on a given OS (e.g. on_linux with only x86_64_linux sha256 plus
depends_on arch: :x86_64), `refresh` under `SimulateSystem.with_tag`
raises CaskInvalidError for the unsupported combos. Rescue these so
the variations iteration produces the supported subset instead of
aborting the entire call chain.
Fixes generate-cask-ci-matrix failures on cask PRs with intentional
arch asymmetry (e.g. devin-cli).1 parent 5d7251a commit f01fb86
3 files changed
Lines changed: 43 additions & 7 deletions
File tree
- Library/Homebrew
- cask
- test
- cask
- support/fixtures/cask/Casks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
596 | | - | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
597 | 598 | | |
598 | | - | |
599 | | - | |
600 | | - | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
601 | 602 | | |
602 | | - | |
603 | | - | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
604 | 606 | | |
| 607 | + | |
| 608 | + | |
605 | 609 | | |
606 | 610 | | |
607 | 611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
747 | 755 | | |
748 | 756 | | |
749 | 757 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments