Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Add check for httpclient.New() #8

Merged
merged 1 commit into from
Aug 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions cmd/check/sdk_refs.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,22 @@ var deprecations = []*identDeprecation{
{
"github.com/hashicorp/terraform/httpclient",
ast.NewIdent("UserAgentString"),
"Please don't use this",
"This function has been removed, please use httpclient.TerraformUserAgent(version) instead",
},
{
"github.com/hashicorp/terraform/httpclient",
ast.NewIdent("New"),
"This function has been removed, please use DefaultPooledClient() with custom Transport/round-tripper from github.com/hashicorp/go-cleanhttp instead",
},
{
"github.com/hashicorp/terraform/terraform",
ast.NewIdent("UserAgentString"),
"Please don't use this",
"This function has been removed, please use httpclient.TerraformUserAgent(version) instead",
},
{
"github.com/hashicorp/terraform/terraform",
ast.NewIdent("VersionString"),
"Please don't use this",
"This function has been removed, please use helper/schema's Provider.TerraformVersion available from Provider.ConfigureFunc",
},
{
"github.com/hashicorp/terraform/config",
Expand Down