Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Releasing to a Linux-only Homebrew formula #1893

Closed
nikolay opened this issue Nov 12, 2020 · 2 comments · Fixed by #1900
Closed

Releasing to a Linux-only Homebrew formula #1893

nikolay opened this issue Nov 12, 2020 · 2 comments · Fixed by #1900
Labels
bug Something isn't working

Comments

@nikolay
Copy link

nikolay commented Nov 12, 2020

Describe the bug

$ brew readall
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/muesli/homebrew-tap/deckmaster.rb
formulae require at least a URL

The formula is generated with GoReleaser and does not target macOS. In such case, at least depends_on :linux should be added, but, regardless, it does not work due to the fact that macOS requires a url property, which is not defined on macOS.

To Reproduce

Steps to reproduce the behavior:

https://github.com/muesli/deckmaster/blob/master/.goreleaser.yml

Expected behavior

The generated formula should have depends_on :linux and handle gracefully when the tap, which may have formulas available on macOS, too, errors out due to unset url property.

Environment (please complete the following information):

  • OS: mac
  • OS version: macOS 11.0.1 Big Sur
  • GoReleaser Version 0.146.0
@caarlos0
Copy link
Member

can you check #1900?

@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants