Commit 39ee328
committed
tapioca/compilers/cask/config: Add Linux-only
- The DSL compiler iterates over `Cask::Config.defaults` to emit accessor
methods. On macOS that map omits `appimagedir` because it lives in the
Linux-only `OS::Linux::Cask::Config::ClassMethods::DEFAULT_DIRS` (moved
there in 48ac0fb). Running `brew tc --update` on macOS therefore
deleted `def appimagedir; end` from the RBI, which then broke Sorbet's
view of `cask/artifact/appimage.rb`.
- Maintain a small list of Linux-only dir names in the compiler and merge
them into the key set so the generated RBI is OS-independent. Trying
to retrieve these dynamically failed on macOS because the Linux-only
defaults are inaccessible.
Co-Authored-By: Copilot (CLI, agent mode, model Claude Opus 3.7)Cask::Config keys too1 parent b9784f4 commit 39ee328
2 files changed
Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | | - | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
27 | | - | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
0 commit comments