Build of `openssl@3` breaks: `undefined method which`
Author: kdeldyckeCreated Sep 3, 2026Updated Sep 3, 2026
I hit this issue on macos-15-intel (x86_64 macOS) in CI:
/opt/zerobrew/tmp/rb_cache/[email protected]:92:in `install': undefined method `which' for an instance of OpensslAT3 (NoMethodError)
Error: source build failed (exit code: Some(1))The offending line seems to be in openssl@3 formula inside install:
ENV["PERL"] = formula_opt_bin("perl")/"perl" if which("perl") == formula_opt_bin("perl")/"perl"But I can reproduce it on my laptop on macOS too:
$ gh release download v0.3.2 --repo lucasgelfond/zerobrew --pattern zb-darwin-x64 --output /usr/local/bin/zb
$ chmod +x /usr/local/bin/zb
$ zb init
$ zb install meta-package-managerSource: lucasgelfond/zerobrew