Golangci-Lint: vultr/config.go#L32
SA1019: meta.SDKVersionString is deprecated: Use Go standard library [runtime/debug] package build information instead. (staticcheck)
These changes will lookup the module by the path, then set the User-Agent string to Terraform/ plus whatever is returned from the module. For example:
User-Agent=Terraform/v2.30.0
If for some reason it cannot determine the version number, it will default to v0.0.0 for the sake of consistency
Checklist:
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Have you linted your code locally prior to submission?
[x] Have you successfully ran tests with your changes locally?
Testing
Set the debug output, run a command and check the value passed in the output file.
Description
Resolve the deprecation lint error:
These changes will lookup the module by the path, then set the
User-Agent
string toTerraform/
plus whatever is returned from the module. For example:If for some reason it cannot determine the version number, it will default to
v0.0.0
for the sake of consistencyChecklist:
Testing
Set the debug output, run a command and check the value passed in the output file.