Skip to content

Commit 5e67775

Browse files
committed
Bump tflint-plugin-sdk to v0.18.0
1 parent 0e58cd1 commit 5e67775

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/sourcegraph/go-lsp v0.0.0-20200429204803-219e11d77f5d
2525
github.com/sourcegraph/jsonrpc2 v0.2.0
2626
github.com/spf13/afero v1.9.5
27-
github.com/terraform-linters/tflint-plugin-sdk v0.17.0
27+
github.com/terraform-linters/tflint-plugin-sdk v0.18.0
2828
github.com/terraform-linters/tflint-ruleset-terraform v0.4.0
2929
github.com/xeipuuv/gojsonschema v1.2.0
3030
github.com/zclconf/go-cty v1.13.2
@@ -33,7 +33,7 @@ require (
3333
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e
3434
golang.org/x/oauth2 v0.10.0
3535
golang.org/x/text v0.11.0
36-
google.golang.org/grpc v1.56.2
36+
google.golang.org/grpc v1.57.0
3737
)
3838

3939
require (

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F
462462
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
463463
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
464464
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
465-
github.com/terraform-linters/tflint-plugin-sdk v0.17.0 h1:epg9rqt6zaj7C3qaNqRMlqscOqX0S1UKiTk+UHGvi1Q=
466-
github.com/terraform-linters/tflint-plugin-sdk v0.17.0/go.mod h1:XrMaY79YpbU4J4cZgo6o4F31ZiMO2ccETXISniTOCsA=
465+
github.com/terraform-linters/tflint-plugin-sdk v0.18.0 h1:XqQS6/RfUU6J3ySDTdN5c/KvNu6sOYdGqtTo4zgRPXE=
466+
github.com/terraform-linters/tflint-plugin-sdk v0.18.0/go.mod h1:OvyC1d9NyIFxNZQeKM7vSGrRWq0cuq27zAQUMpJH5h8=
467467
github.com/terraform-linters/tflint-ruleset-terraform v0.4.0 h1:HOkKth3zhtpEo4J0f122ln6xAo1RKnroDYzP+gnZWbM=
468468
github.com/terraform-linters/tflint-ruleset-terraform v0.4.0/go.mod h1:rcgg6YCJIvU2zL2aJlYE9s1u0HirSunjJg7Gu/mqUNY=
469469
github.com/ulikunitz/xz v0.5.10 h1:t92gobL9l3HE202wg3rlk19F6X+JOxl9BBrCCMYEYd8=
@@ -1000,8 +1000,8 @@ google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACu
10001000
google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
10011001
google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
10021002
google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI=
1003-
google.golang.org/grpc v1.56.2 h1:fVRFRnXvU+x6C4IlHZewvJOVHoOv1TUuQyoRsYnB4bI=
1004-
google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
1003+
google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw=
1004+
google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo=
10051005
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
10061006
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
10071007
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=

plugin/discovery.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
// is specified will launch the bundled plugin instead of returning an error.
2323
func Discovery(config *tflint.Config) (*Plugin, error) {
2424
clients := map[string]*plugin.Client{}
25-
rulesets := map[string]*host2plugin.GRPCClient{}
25+
rulesets := map[string]*host2plugin.Client{}
2626

2727
for _, pluginCfg := range config.Plugins {
2828
installCfg := NewInstallConfig(config, pluginCfg)
@@ -64,7 +64,7 @@ func Discovery(config *tflint.Config) (*Plugin, error) {
6464
if err != nil {
6565
return nil, err
6666
}
67-
ruleset := raw.(*host2plugin.GRPCClient)
67+
ruleset := raw.(*host2plugin.Client)
6868

6969
clients[pluginCfg.Name] = client
7070
rulesets[pluginCfg.Name] = ruleset

plugin/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var SDKVersionConstraints = version.MustConstraints(version.NewConstraint(">= 0.
1919
// Plugin is an object handling plugins
2020
// Basically, it is a wrapper for go-plugin and provides an API to handle them collectively.
2121
type Plugin struct {
22-
RuleSets map[string]*host2plugin.GRPCClient
22+
RuleSets map[string]*host2plugin.Client
2323

2424
clients map[string]*plugin.Client
2525
}

plugin/server_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import (
1313
"github.com/hashicorp/hcl/v2/hclsyntax"
1414
"github.com/spf13/afero"
1515
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
16-
"github.com/terraform-linters/tflint-plugin-sdk/plugin/host2plugin"
16+
"github.com/terraform-linters/tflint-plugin-sdk/plugin"
1717
"github.com/terraform-linters/tflint-plugin-sdk/terraform/lang/marks"
1818
sdk "github.com/terraform-linters/tflint-plugin-sdk/tflint"
1919
"github.com/terraform-linters/tflint/tflint"
2020
"github.com/zclconf/go-cty/cty"
2121
)
2222

23-
var SDKVersion = version.Must(version.NewVersion(host2plugin.SDKVersion))
23+
var SDKVersion = version.Must(version.NewVersion(plugin.SDKVersion))
2424

2525
func TestGetModuleContent(t *testing.T) {
2626
runner := tflint.TestRunner(t, map[string]string{"main.tf": `

0 commit comments

Comments
 (0)