Skip to content

Commit

Permalink
extend/kernel: fix error on early deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Oct 16, 2024
1 parent 4d4f3a2 commit aff4177
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/Homebrew/extend/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ def oh1(title, truncate: :auto)
# @api public
sig { params(message: T.any(String, Exception)).void }
def opoo(message)
require "utils/github/actions"
return if GitHub::Actions.puts_annotation_if_env_set(:warning, message.to_s)

require "utils/formatter"

Tty.with($stderr) do |stderr|
stderr.puts Formatter.warning(message, label: "Warning")
end
Expand Down

0 comments on commit aff4177

Please sign in to comment.