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

Homebrew - Tapping fails: Formulae require at least a URL on Apple M1 #401

Closed
mchetelat opened this issue Aug 25, 2021 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@mchetelat
Copy link

What happened:
Tapping results in:

Error: Invalid formula: /opt/homebrew/Library/Taps/anchore/homebrew-grype/grype.rb
formulae require at least a URL
Error: Cannot tap anchore/grype: invalid syntax in tap!

What you expected to happen:
Tapping does not fail and grype can be installed using Homebrew.

How to reproduce it (as minimally and precisely as possible):
Run brew tap anchore/grype in the specified environment

Environment:

  • Output of grype version: none
  • OS (e.g: cat /etc/os-release or similar): Apple M1 macOS 11.5.2
@mchetelat mchetelat added the bug Something isn't working label Aug 25, 2021
@mchetelat mchetelat changed the title Tapping fails: Formulae require at least a URL on Apple M1 Homebrew - Tapping fails: Formulae require at least a URL on Apple M1 Aug 25, 2021
@luhring
Copy link
Contributor

luhring commented Aug 25, 2021

Hi @mchetelat, thanks for the issue! Coincidentally, this came up just the other day on our community Slack.

That user was also on an M1 Mac, and they found that running these commands enabled a successful Homebrew installation of Grype:

arch -x86_64 brew tap anchore/grype
arch -x86_64 brew install anchore/grype/grype

Having said that, the right solution is for us to start compiling and publishing Grype for darwin/arm64. So we'll leave this issue open until that's accomplished.

@mchetelat
Copy link
Author

Hi @luhring

It works now!

✔ Vulnerability DB [updated]
✔ Loaded image
✔ Parsed image
✔ Cataloged packages [302 packages]
✔ Scanned image [417 vulnerabilities]

Thanks a lot. Shall I close the issue?

@luhring
Copy link
Contributor

luhring commented Oct 28, 2021

@mchetelat Excellent! Credit goes to @spiffcs! 👏

We can close now. We had been waiting to try this on an M1-equipped machine, but if you've done that successfully, that's great! 🎉

@luhring luhring closed this as completed Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants