-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
terraform: Use real version in UA header #2229
terraform: Use real version in UA header #2229
Conversation
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. They will authorize it to run through our CI pipeline, which will generate downstream PRs. Thanks for your contribution! A human will be with you soon. @tysen, please review this PR or find an appropriate assignee. |
Will this change force people to use TF 0.12 or will it be backward compatible with 0.11? What is the strategy for the Google Terraform provider to maintain backward compatibility and are their any tests to verify that? |
Generally speaking we don't have extensive testing CI in place for this specific scenario, but the protocol changes are additive and we intend to keep it backwards compatible (certainly protocol-wise) until we start versioning the plugin SDK separately - which will be communicated appropriately and this is the first step towards that direction. The future extracted plugin SDK (not published yet) will not offer This specific change will not force people to use any particular Terraform version - it will just report accurate version (sent by Terraform binary over gRPC to the provider binary) if people use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable enough to me.
I think when the downstreams are merged we can go ahead and generate the PRs from this and get them merged. |
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesNo diff detected in Inspec. New Pull RequestsI built this PR into one or more new PRs on other repositories, and when those are closed, this PR will also be merged and closed. |
Hi! I'm the modular magician, I work on Magic Modules. Pull request statusesterraform-provider-google-beta already has an open PR. New Pull RequestsI didn't open any new pull requests because of this PR. |
Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec.
1fd42c2
to
8e9d6bd
Compare
The existing implementation leverages Terraform's
version
package as Terraform currently provides the SDK for interacting with core and is therefore imported by the provider, including theversion
package.The side effect of this is that provider reports version of vendored Terraform (i.e. plugin SDK), not the version which actually talks to the provider's gRPC server and parses the configuration.
This PR is leveraging recent changes introduced in 0.12 to fix that and report accurate version.
This also changes the header from the following
to
to align UA string with hashicorp/terraform#22272
This also requires bumping
github.com/hashicorp/terraform
to the latest revision frommaster
- I'm not sure how to do that in the context of this project though.Release Note for Downstream PRs (will be copied)