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

#133 breaks tap for Apple Silicon installs #134

Closed
behe opened this issue Apr 6, 2021 · 5 comments · Fixed by #136
Closed

#133 breaks tap for Apple Silicon installs #134

behe opened this issue Apr 6, 2021 · 5 comments · Fixed by #136
Labels
bug Something isn't working

Comments

@behe
Copy link

behe commented Apr 6, 2021

#133 breaks tap for Apple Silicon installs since the hardware is not mac + intel.

brew readall
Error: Invalid formula: /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/consul.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/vault.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/terraform.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/nomad.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/boundary.rb
formulae require at least a URL
@Arthegor
Copy link

Arthegor commented Apr 6, 2021

Same problem ( Mac mini M1 8Go )

brew tap hashicorp/tap
==> Tapping hashicorp/tap
Cloning into '/opt/homebrew/Library/Taps/hashicorp/homebrew-tap'...
remote: Enumerating objects: 215, done.
remote: Counting objects: 100% (215/215), done.
remote: Compressing objects: 100% (132/132), done.
remote: Total 1027 (delta 117), reused 171 (delta 83), pack-reused 812
Receiving objects: 100% (1027/1027), 202.59 KiB | 2.11 MiB/s, done.
Resolving deltas: 100% (537/537), done.
Error: Invalid formula: /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/consul.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/vault.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/terraform.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/nomad.rb
formulae require at least a URL
Error: Invalid formula: /opt/homebrew/Library/Taps/hashicorp/homebrew-tap/Formula/boundary.rb
formulae require at least a URL
Error: Cannot tap hashicorp/tap: invalid syntax in tap!

@radeksimko
Copy link
Member

radeksimko commented Apr 6, 2021

Thank you for the report.

AFAICT none of the mentioned products have released compatible (darwin/arm64) builds yet:

So it would make sense for installation of any of these formulas to fail (on M1 Mac).

However you are right that tapping should work without any failures.

I think we just need to find a way of communicating the (limited) compatibility in a graceful way.

@radeksimko radeksimko added the bug Something isn't working label Apr 6, 2021
@behe
Copy link
Author

behe commented Apr 6, 2021

I've been using https://releases.hashicorp.com/vault/1.6.3/ on Apple Silicon under Rosetta 2 without problem. Maybe just remove the intel check on mac systems?

@radeksimko
Copy link
Member

Based on some (brief) docs available and spelunking in the Homebrew source code I think something like this should work:

depends_on arch: [:x86_64] if OS.mac?

or alternatively

on_macos do
  depends_on arch: [:x86_64]
end

However this should probably be inserted only if the formula (product version) being created really doesn't support that architecture. It seems that we do not ingest list of builds or supported OS/architectures on release - but I will let @kpenfound weigh in here as he has far more context.

@behe This tap purposefully adheres to the support that the maintaining product teams communicate (unlike the core tap). AFAIK the maintaining teams have yet to test these products under Apple Silicon thoroughly (whether under Rosetta or natively) before committing to supporting it officially.

@kpenfound
Copy link
Contributor

Thanks for jumping in @radeksimko , that makes sense. We can add some branching logic to the templating until we have darwin_arm64 support across the board. I'll dig into this today.

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

Successfully merging a pull request may close this issue.

4 participants