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
Being able to compile (build) Terraform using a git tag.
Build fails with error
export GO111MODULE='on'
go get -v -u 'github.com/hashicorp/[email protected]'
N/A
The string Unknwon must be all lower-case unknwon
https://github.com/hashicorp/terraform/blob/60e407a59baef661f94f216ff6c5462500b7b081/go.mod#L7
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

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.
Most helpful comment
I can confirm this bug is still present on Terraform v0.12.24