Open jmandel1027 opened 1 year ago
Addendum I've purged my tf lockfiles and terragrunt cache and still same behavior
Can you re-run the install command with TF_HELPER_LOG=debug
enabled and share the log?
@jmandel1027 any updates from your side?
Facing the same issue:
$ TF_HELPER_LOG=debug m1-terraform-provider-helper install hashicorp/template -v v2.2.0
Getting provider data from terraform registry
INFO[0000] Provider data: {https://github.com/hashicorp/terraform-provider-template terraform-provider-template}
Getting source code...
INFO[0000] Cloning https://github.com/hashicorp/terraform-provider-template to /Users/user/.m1-terraform-provider-helper/terraform-provider-template
Enumerating objects: 5962, done.
Total 5962 (delta 0), reused 0 (delta 0), pack-reused 5962
INFO[0003] Resetting /Users/user/.m1-terraform-provider-helper/terraform-provider-template and pulling latest changes
INFO[0008] Bash execution output: Your branch is up to date with 'origin/master'.
Already up to date.
INFO[0008] Checking out v2.2.0
error: invalid checksum
What happens if you cd
into ~/.m1-terraform-provider-helper/terraform-provider-template
and do a git checkout v2.2.0
?
@Junkern
The output of the command git checkout v2.2.0
:
❯ git checkout v2.2.0
M CHANGELOG.md
HEAD is now at 920304d v2.2.0
The Read-me says to run:
m1-terraform-provider-helper lockfile upgrade
this fixed the problem for me.
I'm stuck on this issue also, and the lockfile upgrade
didn't work (it gave a different error). @Junkern any newer suggestions?
I'm also having this issue. I've tried deleting the local files for the template. I don't believe it's a lockfile issue because the problem seems to be with the go.sum file in the helper directory, not with my local projects. This definitely worked previously, but I suspect a recent Mac update broke things.
➜ money-payments git:(develop) ✗ TF_HELPER_LOG=debug m1-terraform-provider-helper install hashicorp/template -v v2.0.0
Getting provider data from terraform registry
INFO[0000] Provider data: {https://github.com/hashicorp/terraform-provider-template terraform-provider-template}
Getting source code...
INFO[0000] Resetting /Users/mwsmith/.m1-terraform-provider-helper/terraform-provider-template and pulling latest changes
INFO[0001] Bash execution output: Your branch is up to date with 'origin/master'.
Already up to date.
INFO[0001] Checking out v2.0.0
Compiling...
INFO[0003] Using build command: make build
FATA[0003] Bash execution did not run successfully: exit status 2.
Output:
go: downloading github.com/hashicorp/terraform v0.12.0-alpha4.0.20190114221020-778cf445d42f
go: downloading golang.org/x/text v0.3.0
verifying github.com/hashicorp/terraform@v0.12.0-alpha4.0.20190114221020-778cf445d42f: checksum mismatch
downloaded: h1:1I/im0eFY0sQDt4gpoubdZNU7UUcAz5zjV1FQtwyWKQ=
go.sum: h1:3l9OYnlNmafAplQbqK0PTuRSZrdpY5wdT+tssQ+JDBk=
SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.
For more information, see 'go help module-auth'.
make: *** [build] Error 1
Any updates on this issue? I'm facing the same on M2.
Sonoma Version 14.5 (23F79), Apple M2 Pro
fixed in my case by commenting out in local git config and removing the provider rm -rf ~/.m1-terraform-provider-helper/terraform-provider-template/
#untrackedCache = true
more info in git config readme
Hi there, im unable to install hashicorp/template with this tool, i keep getting a checksum invalid error when downloading the provider. (see below)
Expected Behavior
should install the template provider no problem
Actual Behavior
Steps to Reproduce (including precondition)
Screenshot on This Problem (if possible)
{Please write here}
Your Environment