Merge pull request #18580 from Homebrew/opoo-error-fix
extend/kernel: fix error on early deprecations
This commit is contained in:
commit
43e47abc72
@ -64,8 +64,11 @@ module Kernel
|
|||||||
# @api public
|
# @api public
|
||||||
sig { params(message: T.any(String, Exception)).void }
|
sig { params(message: T.any(String, Exception)).void }
|
||||||
def opoo(message)
|
def opoo(message)
|
||||||
|
require "utils/github/actions"
|
||||||
return if GitHub::Actions.puts_annotation_if_env_set(:warning, message.to_s)
|
return if GitHub::Actions.puts_annotation_if_env_set(:warning, message.to_s)
|
||||||
|
|
||||||
|
require "utils/formatter"
|
||||||
|
|
||||||
Tty.with($stderr) do |stderr|
|
Tty.with($stderr) do |stderr|
|
||||||
stderr.puts Formatter.warning(message, label: "Warning")
|
stderr.puts Formatter.warning(message, label: "Warning")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user