homebrew-file icon indicating copy to clipboard operation
homebrew-file copied to clipboard

Error: No available formula with the name "restart_service:"

Open nebiros opened this issue 1 year ago • 2 comments

A Brewfile with this:

brew "openssl-osx-ca", restart_service: :changed

Throws this error:

$ brew reinstall openssl-osx-ca restart_service: :changed
Error: No available formula with the name "restart_service:".
[ERROR]: Failed at command: /opt/homebrew/bin/brew reinstall openssl-osx-ca restart_service: :changed

nebiros avatar Jul 21 '22 00:07 nebiros

Thanks for the report.

restart_service is an option for homebrew-bundle. Currently this tool does not fully support these conventions.

But I think some of them can be implemented, so I wii try.

rcmdnk avatar Jul 22 '22 01:07 rcmdnk

If you want to use brew-file right now, remove , restart_service: :changed from the Brewfile, and restart the service manually:

$ brew file install
$ brew services start openssl-osx-ca

rcmdnk avatar Jul 22 '22 01:07 rcmdnk