Open alex-shafer-1002 opened 1 year ago
That's because hashicorp didn't publish any binaries for M1 macs before 1.0.2. The same problem applies to using older provider versions.
If you need to use earlier terraform (or provider ) versions all the time, that hashicorp didn't build a darwin_arm64 binary for, I'd suggest you put export TFENV_ARCH=amd64
into your bashrc/zshrc and just keep using amd64 binaries for all of your terraform. Have rosetta2 handle it for you. (This is what I'm doing).
Hello,
I agree and have done so already, however I see we have some logic that attempts to handle this and appears to be faulty somehow given that this fails: https://github.com/tfutils/tfenv/blob/master/libexec/tfenv-install#L125
Yeah, I poked around that bash logic last week and indeed it seems to be flaky.
@iomarcovalente there is logic in place that does this automatically, it's just not been released to homebrew. It seems we're way behind on releases, merging, etc. I'm getting concerned about the maintenance of this project myself.
it's just not been released to homebrew
It just not been released period. It's not homebrew-s fault that there's no tfenv release of that feature. If tfenv has a release of that feature, I'm 100% sure it shows up in homebrew within a day or two.
BTW you can still install with homebrew from HEAD to have that feature: brew install --HEAD tfenv
.
Installs for terraform version < 1.0.2 fail on my M1 mac unless
TFENV_ARCH=amd64
is specified.Not shown: fishing for the lowest version with arm64 support