extend/kernel: fix error on early deprecations
This commit is contained in:
parent
4d4f3a2344
commit
aff41779c4
@ -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