Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid checksum: hashicorp/template -v 2.2.0 #119

Open
jmandel1027 opened this issue Feb 28, 2023 · 11 comments
Open

invalid checksum: hashicorp/template -v 2.2.0 #119

jmandel1027 opened this issue Feb 28, 2023 · 11 comments

Comments

@jmandel1027
Copy link

jmandel1027 commented Feb 28, 2023

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

m1-terraform-provider-helper install hashicorp/template -v 2.2.0

should install the template provider no problem

Actual Behavior

m1-terraform-provider-helper install hashicorp/template -v 2.2.0                                                                                                          
Getting provider data from terraform registry
Getting source code...
error: invalid checksum

Steps to Reproduce (including precondition)

m1-terraform-provider-helper activate
m1-terraform-provider-helper install hashicorp/template -v 2.2.0    

Screenshot on This Problem (if possible)

{Please write here}

Your Environment

  • OS: Ventura 13.2.1
  • m1-terraform-provider-helper version: 0.8.1
@jmandel1027
Copy link
Author

Addendum I've purged my tf lockfiles and terragrunt cache and still same behavior

@Junkern
Copy link
Contributor

Junkern commented Mar 1, 2023

Can you re-run the install command with TF_HELPER_LOG=debug enabled and share the log?

@Junkern
Copy link
Contributor

Junkern commented Mar 15, 2023

@jmandel1027 any updates from your side?

@amanbolat
Copy link

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

@Junkern
Copy link
Contributor

Junkern commented Apr 3, 2023

What happens if you cd into ~/.m1-terraform-provider-helper/terraform-provider-template and do a git checkout v2.2.0?

@amanbolat
Copy link

@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

@milo526
Copy link

milo526 commented Apr 11, 2023

The Read-me says to run:

m1-terraform-provider-helper lockfile upgrade

this fixed the problem for me.

@lordjabez
Copy link

I'm stuck on this issue also, and the lockfile upgrade didn't work (it gave a different error). @Junkern any newer suggestions?

@brynnflynn
Copy link

brynnflynn commented Jun 2, 2023

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 

@msdundar
Copy link

msdundar commented Jul 4, 2024

Any updates on this issue? I'm facing the same on M2.

Sonoma Version 14.5 (23F79), Apple M2 Pro

@kalabiyau
Copy link

kalabiyau commented Aug 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants