-
Notifications
You must be signed in to change notification settings - Fork 630
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
provider: Use real Terraform version in UA header #437
Conversation
@radeksimko Looks like hashicorp/terraform#22272 has landed, is this ready for merge now? |
We are in the process of resolving some upstream dependency issues before we cut the next version and update this PR, please hold. |
9f8288b
to
4e2667e
Compare
4e2667e
to
0b8b5d7
Compare
0b8b5d7
to
7dee496
Compare
@patryk I have updated the description of the PR so you can understand the full impact which may not be immediately obvious + I rebased to the latest Could you please confirm you're ok with it and happy for me to merge? |
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.
LGTM
Thanks @radeksimko, great to see it in! |
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