kreuzwerker / m1-terraform-provider-helper

CLI to support with downloading and compiling terraform providers for Mac with M1 chip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: respect GOPATH env variable

mavogel opened this issue · comments

Expected Behavior

should build the provider and respect the GOPATH and GOBIN env

Actual Behavior

it fails and assumes go binary folder at the location ~/go/bin

Steps to Reproduce (including precondition)

export GOPATH=~/Developer/Go
m1-terraform-provider-helper activate
m1-terraform-provider-helper install hashicorp/vault -v v2.10.0
# ...
2021/12/25 21:04:43 Move from /Users/manuelvogel/go/bin/terraform-provider-vaultto/Users/manuelvogel/.terraform.d/plugins/registry.terraform.io/hashicorp/vault/v2.10.0/darwin_arm64/terraform-provider-vault_v2.10.0_x5
2021/12/25 21:04:43 rename /Users/manuelvogel/go/bin/terraform-provider-vault /Users/manuelvogel/.terraform.d/plugins/registry.terraform.io/hashicorp/vault/v2.10.0/darwin_arm64/terraform-provider-vault_v2.10.0_x5: no such file or directory

as the provider was built into $GOPATH/bin

ls $GOPATH/bin
# ...
terraform-provider-vault

Your Environment

  • OS: osx 12.0.1
  • m1-terraform-provider-helper version: 0.2.4