kreuzwerker / m1-terraform-provider-helper

CLI to support with downloading and compiling terraform providers for Mac with M1 chip
MIT License
491 stars 30 forks source link

Unable to install via homebrew #168

Closed korysas closed 8 months ago

korysas commented 9 months ago

Expected Behavior

When running brew install kreuzwerker/taps/m1-terraform-provider-helper the m1-terraform-provider-helper executable should be installed

Actual Behavior

Get a warning saying

Warning: No available formula or cask with the name "kreuzwerker/taps/m1-terraform-provider-helper".

When running brew doctor there is warning

Warning: Found Ruby file outside kreuzwerker/taps tap formula directory.
(/opt/homebrew/Library/Taps/kreuzwerker/homebrew-taps/Formula):
  /opt/homebrew/Library/Taps/kreuzwerker/homebrew-taps/awsu.rb
  /opt/homebrew/Library/Taps/kreuzwerker/homebrew-taps/envsec.rb
  /opt/homebrew/Library/Taps/kreuzwerker/homebrew-taps/envplate.rb
  /opt/homebrew/Library/Taps/kreuzwerker/homebrew-taps/m1-terraform-provider-helper.rb

Workaround

Navigated to /opt/homebrew/Library/Taps/kreuzwerker/homebrew-taps and ran rm -rf Formula

Then brew install kreuzwerker/taps/m1-terraform-provider-helper worked fine.

Your Environment

ps-dmaksimovic commented 8 months ago

I have the same problem as of this morning

Davidian1024 commented 8 months ago

Also running into this on an M2 Pro on Sonoma 14.2.1.

shelmire commented 8 months ago

Same issue here.

younsl commented 8 months ago

I have the same issue on MacBook Pro 16" with M1 Max CPU.

Details:

image
$ brew --version && arch
Homebrew 4.2.8
arm64

$ brew install kreuzwerker/taps/m1-terraform-provider-helper
Warning: No available formula or cask with the name "kreuzwerker/taps/m1-terraform-provider-helper"

$ brew tap
aws/tap
homebrew/bundle
homebrew/services
kreuzwerker/taps
mavogel commented 8 months ago

seems to be this commit: https://github.com/kreuzwerker/homebrew-taps/commit/0a4d50822653f17fdd661f256ecd7230cffb57f1 that breaks it

please reach out to the commiter :)

elade89 commented 8 months ago

@brotbert can you please revert this commit? we can't install the package..

brotbert commented 8 months ago

Fixed

younsl commented 8 months ago

As mentioned above, It works well (6950d79)


Result for installation retry Installed m1-terraform-provider-helper using brew. ```bash $ brew --version && arch Homebrew 4.2.8 arm64 ``` ```bash $ brew install kreuzwerker/taps/m1-terraform-provider-helper Running `brew update --auto-update`... ==> Auto-updated Homebrew! Updated 3 taps (kreuzwerker/taps, aws/tap and homebrew/core). ==> New Formulae go@1.21 xcode-build-server You have 4 outdated formulae installed. ==> Fetching dependencies for kreuzwerker/taps/m1-terraform-provider-helper: go ==> Fetching go ==> Downloading https://ghcr.io/v2/homebrew/core/go/manifests/1.22.0 ############################################################################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/go/blobs/sha256:5b6a74eb8ceddbefbe2e8fd6741877d7c6bba2bb98e39e0e6c63275a12afc738 ############################################################################################################################## 100.0% ==> Fetching kreuzwerker/taps/m1-terraform-provider-helper ==> Downloading https://github.com/kreuzwerker/m1-terraform-provider-helper/releases/download/0.9.0/m1-terraform-provider-helper_0.9. ==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/379896850/69a79e5c-ac9a-4174-a9e9-b ############################################################################################################################## 100.0% ==> Installing m1-terraform-provider-helper from kreuzwerker/taps ==> Installing dependencies for kreuzwerker/taps/m1-terraform-provider-helper: go ==> Installing kreuzwerker/taps/m1-terraform-provider-helper dependency: go ==> Downloading https://ghcr.io/v2/homebrew/core/go/manifests/1.22.0 Already downloaded: /Users/younsung.lee/Library/Caches/Homebrew/downloads/0d479628c04459e429e73aecb4bc3d33d58b90f4a4e4ee3b369e34f2dbeca933--go-1.22.0.bottle_manifest.json ==> Pouring go--1.22.0.arm64_sonoma.bottle.tar.gz Warning: Cask homebrew/cask/go was renamed to homebrew/core/go. 🍺 /opt/homebrew/Cellar/go/1.22.0: 12,847 files, 250.8MB ==> Installing kreuzwerker/taps/m1-terraform-provider-helper 🍺 /opt/homebrew/Cellar/m1-terraform-provider-helper/0.9.0: 6 files, 12.8MB, built in 5 seconds ==> Running `brew cleanup m1-terraform-provider-helper`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). ``` ```bash $ m1-terraform-provider-helper install hashicorp/template -v 2.2.0 Getting provider data from terraform registry 2024/02/16 13:55:57 Getting provider data from https://registry.terraform.io/v1/providers/hashicorp/template 2024/02/16 13:55:57 Provider data: {https://github.com/hashicorp/terraform-provider-template terraform-provider-template} Getting source code... 2024/02/16 13:55:57 Extracted repo https://github.com/hashicorp/terraform-provider-template to terraform-provider-template 2024/02/16 13:55:57 Cloning https://github.com/hashicorp/terraform-provider-template to /Users/younsung.lee/.m1-terraform-provider-helper/terraform-provider-template Enumerating objects: 5962, done. Total 5962 (delta 0), reused 0 (delta 0), pack-reused 5962 2024/02/16 13:56:00 Resetting /Users/younsung.lee/.m1-terraform-provider-helper/terraform-provider-template and pulling latest changes Compiling... Successfully installed hashicorp/template 2.2. ```