mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Remove hidden defs references
This commit is contained in:
parent
a40fc0afd3
commit
07fad780de
1
.gitignore
vendored
1
.gitignore
vendored
@ -21,7 +21,6 @@
|
|||||||
/Library/Taps
|
/Library/Taps
|
||||||
/Library/PinnedTaps
|
/Library/PinnedTaps
|
||||||
/Library/Homebrew/.byebug_history
|
/Library/Homebrew/.byebug_history
|
||||||
/Library/Homebrew/sorbet/rbi/hidden-definitions/errors.txt
|
|
||||||
|
|
||||||
# Ignore Bundler files
|
# Ignore Bundler files
|
||||||
**/.bundle/bin
|
**/.bundle/bin
|
||||||
|
@ -18,7 +18,6 @@ AllCops:
|
|||||||
- "**/*.rbi"
|
- "**/*.rbi"
|
||||||
Exclude:
|
Exclude:
|
||||||
- "Homebrew/sorbet/rbi/gems/**/*.rbi"
|
- "Homebrew/sorbet/rbi/gems/**/*.rbi"
|
||||||
- "Homebrew/sorbet/rbi/hidden-definitions/*.rbi"
|
|
||||||
- "Homebrew/bin/*"
|
- "Homebrew/bin/*"
|
||||||
- "Homebrew/vendor/**/*"
|
- "Homebrew/vendor/**/*"
|
||||||
- "Taps/*/*/vendor/**/*"
|
- "Taps/*/*/vendor/**/*"
|
||||||
|
@ -60,18 +60,6 @@ module Homebrew
|
|||||||
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({ "RUBYLIB" => "#{HOMEBREW_LIBRARY_PATH}/sorbet/hidden_definitions_hacks" },
|
|
||||||
"bundle", "exec", "srb", "rbi", "hidden-definitions")
|
|
||||||
# HACK: we'll phase out hidden-definitions soon
|
|
||||||
tmp_file = "sorbet/rbi/hidden-definitions/hidden.rbi.tmp"
|
|
||||||
orig_file = "sorbet/rbi/hidden-definitions/hidden.rbi"
|
|
||||||
File.open(tmp_file, "w") do |out_file|
|
|
||||||
File.foreach(orig_file) do |line|
|
|
||||||
out_file.puts line unless line.include?("def self.new(*args, **arg, &blk); end")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
File.rename(tmp_file, orig_file)
|
|
||||||
|
|
||||||
if args.suggest_typed?
|
if args.suggest_typed?
|
||||||
ohai "Bumping Sorbet `typed` sigils..."
|
ohai "Bumping Sorbet `typed` sigils..."
|
||||||
# --sorbet needed because of https://github.com/Shopify/spoom/issues/488
|
# --sorbet needed because of https://github.com/Shopify/spoom/issues/488
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
# typed: strict
|
|
||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
# This file intentionally left blank
|
|
Loading…
x
Reference in New Issue
Block a user