Unable to install google provider version 3.80.0
valliavadhanula opened this issue · comments
Unable to install google provider version 3.80.0
Expected Behavior
Expecting to install google provider version 3.80.0
Actual Behavior
Giving gofmt error
Steps to Reproduce (including precondition)
Installing google provider version 3.80.0
m1-terraform-provider-helper install hashicorp/google -v v3.80.0
Screenshot on This Problem (if possible)
m1-terraform-provider-helper install hashicorp/google -v v3.80.0
Repo: https://github.com/hashicorp/terraform-provider-google
GitRepo: https://github.com/hashicorp/terraform-provider-google
HEAD is now at 4bdd9fcfc v3.80.0
2022/05/17 13:09:51 version: v3.80.0
==> Checking source code against gofmt...
==> Checking that code complies with gofmt requirements...
Cancel
gofmt needs running on the following files:
./tools.go
You can use the command: `make fmt` to reformat code.
make: *** [fmtcheck] Error 1
2022/05/17 13:09:53 Bash code did not run successfully: exit status 2
terraform-provider-google % make fmt
==> Fixing source code with gofmt...
gofmt -w -s ./google
Your Environment
- OS: macOS Monterey version 12.3.1 M1 Pro Chip}
- m1-terraform-provider-helper version: 1.1.8
I tried this out locally.
According to the README (https://github.com/hashicorp/terraform-provider-google/tree/v3.80.0) the install instructions are make build
. This also does not work for me, I have to use gofmt -s -w ./tools.go && make build
to properly build the provider.
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.