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

Support Terraform v0.13 #21

Merged
merged 9 commits into from
Aug 13, 2020
Merged

Support Terraform v0.13 #21

merged 9 commits into from
Aug 13, 2020

Conversation

minamijoyo
Copy link
Owner

Fixes #20

Terraform v0.13 changed the default location for storing provider's binary to support downloading community providers.
We should support it.
If we could import internal packages in hashicorp/terraform, it would be implemented easily.
As a compromise, we peek a lock file (.terraform/plugins/selections.json) and build a path of plugin directories.
It doesn't implement exactly the same logic as Terraform v0.13, but should be fine for most use cases.

go mod download
verifying github.com/coreos/[email protected]+incompatible: checksum mismatch
        downloaded: h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04=
        go.sum:     h1:KjVWqrZ5U0wa3CxY2AxlH6/UcB+PK2td1DcsYhA+HRs=

See: hashicorp/terraform#24343
After updating to Terraform v0.13.0-beta2,
we got an ambiguous import for github.com/Azure/go-autorest.
It seems to require explicit replace as a workaround.
Fixes #20

Terraform v0.13 changed the default location for storing provider's
binary to support downloading community providers.
We should support it.

If we could import internal packages in hashicorp/terraform,
it would be implemented easily.
As a compromise, we peek a lock file (.terraform/plugins/selections.json)
and build a path of plugin directories.
It doesn't implement exactly the same logic as Terraform v0.13,
but should be fine for most use cases.
@minamijoyo minamijoyo changed the title [WIP] Support Terraform v0.13 Support Terraform v0.13 Aug 13, 2020
@minamijoyo minamijoyo merged commit f6fd8eb into master Aug 13, 2020
@minamijoyo minamijoyo deleted the tf-0.13 branch August 13, 2020 01:23
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

Successfully merging this pull request may close these issues.

Failed to find plugin with Terraform v0.13.0-beta1
1 participant