You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be easily reproducible by having a formula template, *.rb, with the dependencies depend_on following the MacOS and or Linux packages, on_macos or on_linux.
What happened?
I expected the following command to complete successfully:
However, it fails with the following error message:
I believe the issue is because within the
formulaTemplate
it lists theDependencies
after theMacOS
andLinux
packages:goreleaser/internal/pipe/brew/template.go
Lines 145 to 150 in 4c477b5
How can we reproduce this?
This should be easily reproducible by having a formula template, *.rb, with the dependencies
depend_on
following the MacOS and or Linux packages,on_macos
oron_linux
.An example formula can be found here: https://github.com/fidelity/homebrew-tap/blob/master/Formula/kconnect.rb
Error logs might be available here within the Github Action: https://github.com/fidelity/homebrew-tap/runs/7304043925?check_suite_focus=true
goreleaser version
GoReleaser Check
Search
Code of Conduct
Additional context
Output for
goreleaser check
:I think this is an easy enough change, and I would be happy to help contribute. Please let me know if I can take on this issue, or if I am mistaken.
We can also see within the Homebrew Formula Cookbook, they appear to have the
Dependencies
defined early on in the formula:https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md#grab-the-url
The text was updated successfully, but these errors were encountered: