From 9567d57e396d1fe5d013c3872bc7bcda18eee6c0 Mon Sep 17 00:00:00 2001 From: apainintheneck Date: Sat, 7 Dec 2024 10:26:55 -0800 Subject: [PATCH] Add missing utils/service require This was originally added in https://github.com/Homebrew/brew/pull/18865. ```console $ brew ruby -e 'p "activemq".f.service.to_systemd_unit' /usr/local/Homebrew/Library/Homebrew/service.rb:458:in `block in to_systemd_unit': uninitialized constant Utils::Service (NameError) from /usr/local/Homebrew/Library/Homebrew/service.rb:458:in `map' from /usr/local/Homebrew/Library/Homebrew/service.rb:458:in `to_systemd_unit' from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11685/lib/types/private/methods/call_validation.rb:278:in `bind_call' from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11685/lib/types/private/methods/call_validation.rb:278:in `validate_call' from /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11685/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' from -e:1:in `
' ``` ```console $ brew ruby -e 'p "activemq".f.service.to_systemd_unit' "[Unit]\nDescription=Homebrew generated unit for activemq\n\n[Install]\nWantedBy=default.target\n\n[Service]\nType=simple\nExecStart=\"/usr/local/opt/activemq/bin/activemq\" \"console\"\nWorkingDirectory=/usr/local/opt/activemq/libexec\n" ``` --- Library/Homebrew/service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/service.rb b/Library/Homebrew/service.rb index 48fd90270c..2ae807da14 100644 --- a/Library/Homebrew/service.rb +++ b/Library/Homebrew/service.rb @@ -3,6 +3,7 @@ require "ipaddr" require "extend/on_system" +require "utils/service" module Homebrew # The {Service} class implements the DSL methods used in a formula's