Merge pull request #16281 from Bo98/ruby3-hidden-defs-fix
Hack fix for Sorbet hidden definitions update failing on Ruby 3
This commit is contained in:
commit
0f39516cf6
3
.github/workflows/sorbet.yml
vendored
3
.github/workflows/sorbet.yml
vendored
@ -47,6 +47,8 @@ jobs:
|
|||||||
id: update
|
id: update
|
||||||
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
|
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
|
||||||
run: |
|
run: |
|
||||||
|
if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]
|
||||||
|
then
|
||||||
git fetch origin
|
git fetch origin
|
||||||
|
|
||||||
BRANCH="sorbet-files-update"
|
BRANCH="sorbet-files-update"
|
||||||
@ -59,6 +61,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
git checkout --no-track -B "${BRANCH}" origin/master
|
git checkout --no-track -B "${BRANCH}" origin/master
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
brew typecheck --update --suggest-typed
|
brew typecheck --update --suggest-typed
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,8 @@ module Homebrew
|
|||||||
ohai "Updating Tapioca RBI files..."
|
ohai "Updating Tapioca RBI files..."
|
||||||
safe_system "bundle", "exec", "tapioca", "gem", *tapioca_args
|
safe_system "bundle", "exec", "tapioca", "gem", *tapioca_args
|
||||||
safe_system "bundle", "exec", "parlour"
|
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"
|
safe_system "bundle", "exec", "tapioca", "todo"
|
||||||
|
|
||||||
if args.suggest_typed?
|
if args.suggest_typed?
|
||||||
|
|||||||
@ -0,0 +1,4 @@
|
|||||||
|
# typed: strict
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# This file intentionally left blank
|
||||||
File diff suppressed because it is too large
Load Diff
@ -5,6 +5,7 @@
|
|||||||
# typed: false
|
# typed: false
|
||||||
|
|
||||||
module ::Nokogiri; end
|
module ::Nokogiri; end
|
||||||
|
module BigDecimal::Deprecation; end
|
||||||
module T::InterfaceWrapper::Helpers; end
|
module T::InterfaceWrapper::Helpers; end
|
||||||
module T::Private::Abstract::Hooks; end
|
module T::Private::Abstract::Hooks; end
|
||||||
module T::Private::Methods::MethodHooks; end
|
module T::Private::Methods::MethodHooks; end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user