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

no required module provides package github.com/hashicorp/terraform-exec/tfinstall #24

Closed
tekumara opened this issue Mar 14, 2022 · 3 comments · Fixed by #25
Closed

no required module provides package github.com/hashicorp/terraform-exec/tfinstall #24

tekumara opened this issue Mar 14, 2022 · 3 comments · Fixed by #25

Comments

@tekumara
Copy link

go generate
../../go/pkg/mod/github.com/hashicorp/terraform-plugin-docs@v0.5.1/internal/provider/generate.go:14:2: no required module provides package github.com/hashicorp/terraform-exec/tfinstall; to add it:
        go get github.com/hashicorp/terraform-exec/tfinstall
main.go:19: running "go": exit status 1
@tekumara
Copy link
Author

go get github.com/hashicorp/terraform-exec/tfinstall 
go get: module github.com/hashicorp/terraform-exec@upgrade found (v0.16.0), but does not contain package github.com/hashicorp/terraform-exec/tfinstall

To make this work requires downgrading terraform-exec and terraform-plugin-sdk/v2:

go get github.com/hashicorp/terraform-exec/tfinstall@v0.15.0
go get: upgraded cloud.google.com/go v0.45.1 => v0.61.0
go get: added cloud.google.com/go/storage v1.10.0
go get: upgraded github.com/aws/aws-sdk-go v1.15.78 => v1.25.3
go get: added github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
go get: downgraded github.com/hashicorp/terraform-exec v0.16.0 => v0.15.0
go get: downgraded github.com/hashicorp/terraform-plugin-sdk/v2 v2.11.0 => v2.10.1
go get: upgraded github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8 => v0.0.0-20180206201540-c2b33e8439af
go get: added github.com/jstemmer/go-junit-report v0.9.1
go get: upgraded go.opencensus.io v0.22.0 => v0.22.4
go get: upgraded golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3 => v0.0.0-20200302205851-738671d3881b
go get: upgraded google.golang.org/api v0.9.0 => v0.29.0

See also hashicorp/terraform-plugin-docs#122

@bflad
Copy link
Member

bflad commented Mar 14, 2022

Thank you for the heads up about this, @tekumara! The terraform-plugin-docs dependency has been updated to resolve this issue. I will also submit some additional CI testing to verify that the go generate commands works as expected, since this class of issue would not be detected via go test.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants