fix: a fresh Mac installs Homebrew before the brew stage
core/brew was `-builtin` on Darwin, and builtin runs after install_brew, so a Mac without Homebrew failed every brew row "brew missing" and needed a second run. It is a script row on both platforms now. The apt prerequisite line is guarded to apt platforms, and on macOS `sudo -v` caches the timestamp that NONINTERACTIVE=1 Homebrew requires. Darwin dispatch-order test via the fake uname, plus a mutation (G-boot-1).
This commit is contained in:
1 parent
6fa7603633
commit
91a1224a5e
4 files changed
+51
-6
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# what: core/brew runs its apt prerequisites on every platform again
|
||||
# why: a Mac has no apt; the line warns, and the sudo it needs is never asked for
|
||||
# kills: darwin: no apt prerequisites on a machine with no apt
|
||||
# run: unit
|
||||
<<<OLD
|
||||
if [ "$PLAT" = apt ]; then
|
||||
# The installer's own documented prerequisites. git is already
|
||||
<<<NEW
|
||||
if true; then
|
||||
# The installer's own documented prerequisites. git is already
|
||||
<<<END
|
||||
Reference in new issue
Block a user