Hack fix for Sorbet hidden definitions update failing on Ruby 3

This commit is contained in:
Bo Anderson 2023-12-01 19:45:52 +00:00
parent ee5f337a82
commit 110b9b03b0
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
2 changed files with 6 additions and 1 deletions

View File

@ -63,7 +63,8 @@ module Homebrew
ohai "Updating Tapioca RBI files..."
safe_system "bundle", "exec", "tapioca", "gem", *tapioca_args
safe_system "bundle", "exec", "parlour"
safe_system "bundle", "exec", "srb", "rbi", "hidden-definitions"
safe_system({ "RUBYLIB" => "#{HOMEBREW_LIBRARY_PATH}/sorbet/hidden_definitions_hacks" },
"bundle", "exec", "srb", "rbi", "hidden-definitions")
safe_system "bundle", "exec", "tapioca", "todo"
if args.suggest_typed?

View File

@ -0,0 +1,4 @@
# typed: strict
# frozen_string_literal: true
# This file intentionally left blank