Commit 1860472
committed
Drop /Applications, /Library and /Volumes; make the visibility tests portable
The node table is the Filesystem Hierarchy Standard's paths plus the macOS
directories that carry FHS content under another name. /Applications,
/Library and /Volumes are none of those: they are macOS's own, have no
counterpart in the FHS, and the Finder shows them already, so offering to
manage them was offering something this project has no business managing.
Removing them from the table removes them from the menu, the preference pane
and `fhsctl vis` at once, since all three read that one list.
The visibility tests no longer assume a directory exists. /opt is the
instructive case: it is not part of a stock macOS install at all - Homebrew
creates it - so asserting it exists and is changeable makes `make check` fail
on any machine without Homebrew, for a reason unrelated to this code. CI
passes today only because GitHub's macOS images ship Homebrew preinstalled.
The three changeable nodes are now asserted conditionally, which keeps the
property worth pinning - a node that is present classifies as measured, so an
OS change is still caught - without testing the runner's image.1 parent 9bd2270 commit 1860472
2 files changed
Lines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | | - | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
41 | | - | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| |||
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
| 172 | + | |
| 173 | + | |
167 | 174 | | |
168 | 175 | | |
169 | 176 | | |
| |||
182 | 189 | | |
183 | 190 | | |
184 | 191 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
188 | 208 | | |
189 | 209 | | |
190 | 210 | | |
| |||
0 commit comments