Terraform: Unable to compile using version tag

Created on 27 Nov 2019  ยท  9Comments  ยท  Source: hashicorp/terraform

Description

While trying to build Terraform using a release tag the compilation stops while parsing (evaluating) the go.mod file with the following error

go get: github.com/Unknwon/[email protected] updating to
        github.com/Unknwon/[email protected]: parsing go.mod:
        module declares its path as: github.com/unknwon/com
                but was required as: github.com/Unknwon/com

Expected Behavior

Being able to compile (build) Terraform using a git tag.

Actual Behavior

Build fails with error

Steps to Reproduce

export GO111MODULE='on'
go get -v -u 'github.com/hashicorp/[email protected]'

References

N/A

Proposed fix

The string Unknwon must be all lower-case unknwon

https://github.com/hashicorp/terraform/blob/60e407a59baef661f94f216ff6c5462500b7b081/go.mod#L7

backenoss dependencies

Most helpful comment

I can confirm this bug is still present on Terraform v0.12.24

All 9 comments

Hi @tmeckel, I have the same error today, how did you solve it?

There's no solution on our end... Hashicorp must clean up their go.mod file... As simple as that

Although I've to admit that I never tried to combine 'GO111MODULE=ON' with '-mod=vendor' as build flag. :smile:

Thanks a lot for your reply!

I can confirm this bug is still present on Terraform v0.12.24

I believe this is a duplicate of https://github.com/hashicorp/terraform/issues/22341. I imagine upgrading the openstack dependency listed there would fix the build

@nkall yes it definitely is! :grin:

Closing this because at least with v0.12.29 it's possible to use go get to install Terraform locally using a version tag

image

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings