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

FATA[0005] Bash execution did not run successfully: exit status 2.

vyacheslav31 opened this issue · comments

Expected Behavior

The terraform provider should be installed.

Actual Behavior

Getting provider data from terraform registry
INFO[0000] Provider data: {https://github.com/hashicorp/terraform-provider-google terraform-provider-google}
Getting source code...
INFO[0000] Resetting /Users/vgorbov/.m1-terraform-provider-helper/terraform-provider-google and pulling latest changes
INFO[0000] Bash execution output: HEAD is now at 87f866a50 Release notes for 4.47.0 (#13264)
INFO[0002] Bash execution output: Your branch is up to date with 'origin/main'.
Already up to date.
INFO[0002] Checking out v4.47.0
Compiling...
INFO[0005] Using build command: gofmt -s -w ./tools.go  && make build
FATA[0005] Bash execution did not run successfully: exit status 2.
Output:
make: *** [fmtcheck] Error 1

Steps to Reproduce (including precondition)

  1. brew install kreuzwerker/taps/m1-terraform-provider-helper
  2. m1-terraform-provider-helper activate
  3. m1-terraform-provider-helper install hashicorp/google -v v4.47.0

Screenshot on This Problem (if possible)

image

Your Environment

  • OS: macOS 13.0.1 22A400 arm64
  • m1-terraform-provider-helper version: 0.8.1
commented

For the google provider we are defaulting the build commands to gofmt -s -w ./tools.go && make build which apparently does not work.
I tried it out and make fmt && make build does work. You can use the --custom-build-command flag to pass the correct build command, until I release a new version of m1-terraform-provider-helper which has the correct command build in.