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

build from source (make build) failing #57

Closed
shinenelson opened this issue Aug 10, 2019 · 4 comments
Closed

build from source (make build) failing #57

shinenelson opened this issue Aug 10, 2019 · 4 comments

Comments

@shinenelson
Copy link

shinenelson commented Aug 10, 2019

Terraform Version

Terraform v0.12.7-dev

Expected Behavior

What should have happened?
make build should have completed without any errors

Actual Behavior

What actually happened?

==> Checking that code complies with gofmt requirements...
go install
verifying github.com/hashicorp/terraform@v0.12.0: checksum mismatch
	downloaded: h1:It2vmod2dBMB4+r+aUW2Afx0HlftyUwzNsNH3I2vrJ8=
	go.sum:     h1:B5lTDWSdEbbjxrTZQ8GdsDlH7FnDrIvF42GykbhQ6tA=
GNUmakefile:10: recipe for target 'build' failed
make: *** [build] Error 1

Steps to Reproduce

  • git clone the repository
  • make build

Important Factoids

I guess this is pretty much the exact same issue that was observed in https://github.com/terraform-providers/terraform-provider-digitalocean/issues/246#issuecomment-498311720. I believe (re-)generating go.sum ( rather than updating it ) should fix this issue.

@displague
Copy link
Contributor

displague commented Aug 12, 2019

I could not reproduce this with go version go1.12.7 linux/amd64, @shinenelson
(coincidentally, my go version matches the latest Terraform dev version number)

What version of go are you using? go version
There were go mod problems in versions before 1.11.4.

@shinenelson
Copy link
Author

I'm running go version go1.12.5 linux/amd64.

I understand this wouldn't create a problem with your go mod cache. However, like andrewsomething mentioned in the https://github.com/terraform-providers/terraform-provider-digitalocean/issues/246#issuecomment-498311720 linked in my issue description, can you try removing go.mod and re-generating the file?

Do you see a diff as mentioned in the description?

- h1:B5lTDWSdEbbjxrTZQ8GdsDlH7FnDrIvF42GykbhQ6tA=
+ h1:It2vmod2dBMB4+r+aUW2Afx0HlftyUwzNsNH3I2vrJ8=

@displague
Copy link
Contributor

I see. That does create a considerable diff.

/cc @ellisbenjamin @phillc

@phillc
Copy link
Contributor

phillc commented Sep 18, 2019

#58 merged.

Thank you!

@phillc phillc closed this as completed Sep 18, 2019
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

3 participants