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
23
.github/workflows/sorbet.yml
vendored
23
.github/workflows/sorbet.yml
vendored
@ -47,17 +47,20 @@ jobs:
|
||||
id: update
|
||||
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
|
||||
run: |
|
||||
git fetch origin
|
||||
|
||||
BRANCH="sorbet-files-update"
|
||||
echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
if git ls-remote --exit-code --heads origin "${BRANCH}"
|
||||
if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]
|
||||
then
|
||||
git checkout "${BRANCH}"
|
||||
git checkout "Library/Homebrew/sorbet"
|
||||
else
|
||||
git checkout --no-track -B "${BRANCH}" origin/master
|
||||
git fetch origin
|
||||
|
||||
BRANCH="sorbet-files-update"
|
||||
echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
if git ls-remote --exit-code --heads origin "${BRANCH}"
|
||||
then
|
||||
git checkout "${BRANCH}"
|
||||
git checkout "Library/Homebrew/sorbet"
|
||||
else
|
||||
git checkout --no-track -B "${BRANCH}" origin/master
|
||||
fi
|
||||
fi
|
||||
|
||||
brew typecheck --update --suggest-typed
|
||||
|
||||
@ -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?
|
||||
|
||||
@ -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
|
||||
|
||||
module ::Nokogiri; end
|
||||
module BigDecimal::Deprecation; end
|
||||
module T::InterfaceWrapper::Helpers; end
|
||||
module T::Private::Abstract::Hooks; end
|
||||
module T::Private::Methods::MethodHooks; end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user