Skip to content

Commit 6a69eaa

Browse files
authored
Merge pull request #20848 from Homebrew/go_resource-removal
Remove leftover `go_resource`s
2 parents cd84e24 + adfe39d commit 6a69eaa

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Library/Homebrew/ast_constants.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
[{ name: :cxxstdlib_check, type: :method_call }],
4343
[{ name: :link_overwrite, type: :method_call }],
4444
[{ name: :fails_with, type: :method_call }, { name: :fails_with, type: :block_call }],
45-
[{ name: :go_resource, type: :block_call }, { name: :resource, type: :block_call }],
45+
[{ name: :resource, type: :block_call }],
4646
[{ name: :patch, type: :method_call }, { name: :patch, type: :block_call }],
4747
[{ name: :needs, type: :method_call }],
4848
[{ name: :allow_network_access!, type: :method_call }],

Library/Homebrew/rubocops/text.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ class Text < FormulaCop
135135
def audit_formula(formula_nodes)
136136
return if (body_node = formula_nodes.body_node).nil?
137137

138-
find_method_with_args(body_node, :go_resource) do
139-
problem "`go_resource`s are deprecated. Please ask upstream to implement Go vendoring"
140-
end
141-
142138
find_method_with_args(body_node, :env, :userpaths) do
143139
problem "`env :userpaths` in homebrew/core formulae is deprecated"
144140
end

0 commit comments

Comments
 (0)