Merge pull request #17020 from Homebrew/sorbet-euid

dev-cmd/typecheck: use EUID with sorbet
This commit is contained in:
Mike McQuaid 2024-04-04 08:58:36 +01:00 committed by GitHub
commit 2fe08b139e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,6 +43,9 @@ module Homebrew
groups = update ? Homebrew.valid_gem_groups : ["typecheck"] groups = update ? Homebrew.valid_gem_groups : ["typecheck"]
Homebrew.install_bundler_gems!(groups:) Homebrew.install_bundler_gems!(groups:)
# Sorbet doesn't use bash privileged mode so we align EUID and UID here.
Process::UID.change_privilege(Process.euid) if Process.euid != Process.uid
HOMEBREW_LIBRARY_PATH.cd do HOMEBREW_LIBRARY_PATH.cd do
if update if update
safe_system "bundle", "exec", "tapioca", "dsl" safe_system "bundle", "exec", "tapioca", "dsl"