Install from source not working with custom formula? #147
-
Hi, within the last 30 days my GitHub Actions job involving the pre-installed Homebrew stopped working. I was wondering if someone could have a look and check I'm not aware of some recent change. I am trying to run this build step:
You can see the full workflow file here: build.yml @ 60a49c. And my modified formula is here: sdl2.rb @ 60a49c. I just added a few lines to the start of install method. It's based on the latest core formula at the time of posting. What now happens is, the first command seemingly does nothing. The first output appearing in my logs tells me that the SDL2 bottle is being downloaded... explicitly what I told brew to not do. This makes me think the command is silently doing nothing, and the SDL2 bottle is being installed to satisfy SDL2_image.
In fact, these changes follow my first run from today, where instead of using Additionally, I tested just the from-source command on its own. There is no output at all. And I know it's not silently completing, since otherwise the bottle wouldn't be downloaded in the above job. Grateful for any ideas. If it's a bug, I can open an issue. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think it has to do with the logic of detecting if the argument to install is a formula name, cask, path, tap etc. Can you try doing The way you're currently doing it looks like it worked through brew 2.5.2, tries to tap |
Beta Was this translation helpful? Give feedback.
I think it has to do with the logic of detecting if the argument to install is a formula name, cask, path, tap etc. Can you try doing
brew install --build-from-source ./macos/sdl2.rb
as a workaround?The way you're currently doing it looks like it worked through brew 2.5.2, tries to tap
/usr/local/Homebrew/Library/Taps/macos/homebrew-sdl2.rb
in 2.5.3, and now does nothing in 2.5.4 and later.