Closed EricFromCanada closed 2 months ago
Could we get some eyes on this? (@modrake? @sarahethompson?) This issue is quite painful for certain homebrew setups/flows (e.g. w/ https://github.com/rcmdnk/homebrew-file)
Rebased on current master. (@modrake @sarahethompson @dekimsey)
👋, this is interesting thank you for bringing it our attention! I'm going to loop someone in here as this correction actually needs to be performed in our template code so it sticks upon the next release and then the existing formulas regenerated.
Let me get some eyes on this, thank you again!
In that case, the template should be adjusted to use on_system
blocks instead of if
statements, and if only one OS and arch is supported, place the URL at the top level and use depends_on
to limit where it can be installed. Good luck!
I believe this issue is still relevant?
The original problem still exists, but the proper fix is to adjust the template that generates the formula file in question, which is better handled by this repository's maintainers.
Gating the URL behind an if statement causes errors on any macOS Homebrew installation that uses this tap. Instead, use
depends_on
to ensure only Linux on Intel can install it.For example: