mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
- Shell out to `brew setup-sandbox` from `configure!` rather than duplicating the `sysctl` writes in Ruby. - Install Bubblewrap on GitHub Actions runners via whichever package manager is available. - Suggest a distro-specific Bubblewrap install command when `brew doctor` reports a missing sandbox. - Add tests for the `brew setup-sandbox` command.
21 lines
417 B
Ruby
21 lines
417 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
require "abstract_command"
|
|
require "shell_command"
|
|
|
|
module Homebrew
|
|
module Cmd
|
|
class SetupSandbox < AbstractCommand
|
|
include ShellCommand
|
|
|
|
cmd_args do
|
|
description <<~EOS
|
|
Run any necessary commands to setup the Homebrew sandbox.
|
|
Must be run with `sudo`. Currently a no-op on non-Linux.
|
|
EOS
|
|
end
|
|
end
|
|
end
|
|
end
|