Skip to content

Commit 8eff2ea

Browse files
committed
Require bubblewrap for Linux sandbox source builds
Homebrew 6.0 enables a Bubblewrap-based sandbox for source builds on Linux and fails with a fatal error when a rootless bwrap is not on PATH, breaking brew install --build-from-source in CI. Add bubblewrap as a Linux-only dependency to both formulae so the sandbox has what it needs.
1 parent 90ad97b commit 8eff2ea

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

Formula/denvig-alpha.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ class DenvigAlpha < Formula
1616

1717
depends_on "node"
1818

19+
# Homebrew 6.0 enables a Bubblewrap-based sandbox for source builds on Linux and
20+
# aborts with a fatal error if a rootless `bwrap` is not on PATH. Install it on Linux
21+
# so `brew install --build-from-source` works without HOMEBREW_NO_SANDBOX_LINUX.
22+
on_linux do
23+
depends_on "bubblewrap"
24+
end
25+
1926
# denvig depends on the first-party @denvig/cli and @denvig/sdk packages, which are
2027
# published in the same release as denvig itself. Homebrew's npm install injects a
2128
# --min-release-age cooldown that rejects these freshly published deps with an ETARGET

Formula/denvig.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ class Denvig < Formula
1414

1515
depends_on "node"
1616

17+
# Homebrew 6.0 enables a Bubblewrap-based sandbox for source builds on Linux and
18+
# aborts with a fatal error if a rootless `bwrap` is not on PATH. Install it on Linux
19+
# so `brew install --build-from-source` works without HOMEBREW_NO_SANDBOX_LINUX.
20+
on_linux do
21+
depends_on "bubblewrap"
22+
end
23+
1724
def install
1825
system "npm", "install", *std_npm_args
1926
bin.install_symlink libexec.glob("bin/*")

0 commit comments

Comments
 (0)