m1-terraform-provider-helper icon indicating copy to clipboard operation
m1-terraform-provider-helper copied to clipboard

FATA[0047] Bash execution did not run successfully

Open swt-yoromero opened this issue 1 year ago • 8 comments

Hello! I got an error trying to install provider "hashicorp/aws -v v3.23.0"

Thanks for a lot

Output: m1-terraform-provider-helper install hashicorp/aws -v v3.23.0 Getting provider data from terraform registry Getting source code... Compiling... FATA[0047] Bash execution did not run successfully: exit status 2

Expected Behavior

I don't know, because it's the first time I try this application.

Actual Behavior

m1-terraform-provider-helper install hashicorp/aws -v v3.23.0 Getting provider data from terraform registry Getting source code... Compiling... FATA[0047] Bash execution did not run successfully: exit status 2

Steps to Reproduce (including precondition)

{Please write here}

Screenshot on This Problem (if possible)

image

Your Environment

  • OS: Monterrey 12.5
  • m1-terraform-provider-helper version: Current version: 0.7.4%

swt-yoromero avatar Jul 25 '22 13:07 swt-yoromero

Which go version are you using? I recently upgraded to go 1.18 and now I am also running into this error. You can circumvent that error by specifying a different build command.

m1-terraform-provider-helper install hashicorp/aws -v v3.23.0 --custom-build-command "go get -u golang.org/x/sys && make fmt &&  gofmt -s -w ./tools/main.go && make build "

Junkern avatar Jul 25 '22 14:07 Junkern

In general, I think I will add some improvements regarding go 1.18 handling

Junkern avatar Jul 25 '22 14:07 Junkern

gave me the same error, running: m1-terraform-provider-helper install hashicorp/aws -v v3.23.0 --custom-build-command "go get -u golang.org/x/sys && make fmt && gofmt -s -w ./tools/main.go && make build "

swt-yoromero avatar Jul 25 '22 15:07 swt-yoromero

Which go version are you using?

Junkern avatar Jul 26 '22 07:07 Junkern

Hi!!, go version go1.18.4 darwin/arm64

swt-yoromero avatar Jul 26 '22 12:07 swt-yoromero

Please update m1-terraform-provider-helper to the newest version, run the m1-terraform-provider-helper install hashicorp/aws -v v3.23.0 --custom-build-command "go get -u golang.org/x/sys && make fmt && gofmt -s -w ./tools/main.go && make build" command again and post the output :)

Junkern avatar Jul 26 '22 12:07 Junkern

image

But, if I run curl -vvv https://registry.terraform.io/v1/providers/hashicorp/aws, this shows me information

swt-yoromero avatar Jul 26 '22 19:07 swt-yoromero

Okay. The timeout is set to 2 seconds, maybe that is a bit short for some users (maybe I will add a flag to make it customizable) However, in the first post, the error did not originate from the http call (you can see more outputs after the Getting provider data from terraform registry). Please retry running the command again, until it fails with a different cause than the HTTP timeout

Junkern avatar Jul 27 '22 09:07 Junkern

@swt-yoromero did you manage to get it working?

Junkern avatar Aug 29 '22 08:08 Junkern

Closing due to no response..

Junkern avatar Oct 12 '22 10:10 Junkern