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

Formulae require at least a URL #258

Open
tommasongr opened this issue Jan 10, 2024 · 5 comments
Open

Formulae require at least a URL #258

tommasongr opened this issue Jan 10, 2024 · 5 comments

Comments

@tommasongr
Copy link

Hi there,

I'm opening this because a user of our Homebrew client (brewerx.app) has reported an issue with the repository.

We discovered that the vagrant formula is not providing the required url for OSs besides Linux. Causing Homebrew to spin up this issue:

Error: formulae require at least a URL
/opt/homebrew/Library/Homebrew/formula.rb:306:in 'determine_active_spec'
/opt/homebrew/Library/Homebrew/formula.rb:237:in ' initialize' /opt/homebrew/Library/Homebrew/formulary.rb:492:in 'new'
/opt/homebrew/Library/Homebrew/formulary.rb:492:in 'get_formula'
/opt/homebrew/Library/Homebrew/formulary.rb:732 in 'factory'
/opt/homebrew/Library/Taps/paninihouse/homebrew-brewer-cmd/cmd/ brewer-tap-content-info.rb:37:in 'block (2 levels) in brewer_tap_content_info'
/opt/homebrew/Library/Taps/paninihouse/homebrew-brewer-cmd/cmd/ brewer-tap-content-info.rb:36:in 'each'
/opt/homebrew/Library/Taps/paninihouse/homebrew-brewer-cmd/cmd/ brewer-tap-content-info.rb:36:in 'block in brewer_tap_content_info' /opt/homebrew/Library/Homebrew/tap.rb:826:in 'block (2 levels) in each' /opt/homebrew/Library/Homebrew/tap.rb:825 in 'each' /opt/homebrew/Library/Homebrew/tap.rb:825:in 'block in each' /opt/homebrew/Library/Homebrew/tap.rb:824 in 'each' /opt/homebrew/Library/Homebrew/tap.rb:824:in 'each'
/opt/homebrew/Library/Taps/paninihouse/homebrew-brewer-cmd/cmd/ brewer-tap-content-info.rb:34:in 'brewer_tap_content_info' /opt/homebrew/Library/Homebrew/brew.rb:86:in <main>'

If you weren't aware, please consider to fix the malformed files.

Thanks

@kitschpatrol
Copy link

Hi, just chiming in that this is still an issue, and has some knock-on effects... for example, it breaks integrations with brewfile synchronization tools like homebrew-file.

@kapral18
Copy link

kapral18 commented Dec 23, 2024

this is pretty bad it breaks brew search core functionality like brew earch --eval-all --desc <term>

Looking at contributors for last 6 months

cc: @alvin-huang @CalebAlbers @ashconnor @sujaysamanta

We would appreciate if you could spare a couple of minutes to look at this.

@kapral18
Copy link

in the meantime for those who want a managed installation this is a good alternative https://github.com/asdf-community/asdf-hashicorp

@hkandie
Copy link

hkandie commented Dec 27, 2024

If you are running into an error after running

brew tap hashicorp/tap
brew install hashicorp/tap/vagrant

In the vagrant.rb that I found the url pointed to a linux image. If you need a quick installation of vagrant just download the dmg file from https://releases.hashicorp.com/vagrant/2.4.3/ or update the url correctly.

@kapral18
Copy link

@hkandie no I only installed vault, but I get the error mentioning vagrant above every time I run brew search --eval-all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants