dev-cmd/typecheck: use EUID with sorbet

This commit is contained in:
Bo Anderson 2024-04-04 01:18:42 +01:00 committed by Mike McQuaid
parent 96878e869d
commit 27ca946c06
No known key found for this signature in database

View File

@ -43,6 +43,9 @@ module Homebrew
groups = update ? Homebrew.valid_gem_groups : ["typecheck"]
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
if update
safe_system "bundle", "exec", "tapioca", "dsl"