diff --git a/go.mod b/go.mod index deae091b0..5c54e1edf 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( github.com/mitchellh/go-homedir v1.1.0 github.com/owenrumney/go-sarif v1.1.1 github.com/sourcegraph/go-lsp v0.0.0-20200429204803-219e11d77f5d - github.com/sourcegraph/jsonrpc2 v0.1.0 + github.com/sourcegraph/jsonrpc2 v0.2.0 github.com/spf13/afero v1.9.5 github.com/terraform-linters/tflint-plugin-sdk v0.16.0 github.com/terraform-linters/tflint-ruleset-terraform v0.2.2 diff --git a/go.sum b/go.sum index 587ed29b1..57d568543 100644 --- a/go.sum +++ b/go.sum @@ -439,8 +439,8 @@ github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sourcegraph/go-lsp v0.0.0-20200429204803-219e11d77f5d h1:afLbh+ltiygTOB37ymZVwKlJwWZn+86syPTbrrOAydY= github.com/sourcegraph/go-lsp v0.0.0-20200429204803-219e11d77f5d/go.mod h1:SULmZY7YNBsvNiQbrb/BEDdEJ84TGnfyUQxaHt8t8rY= -github.com/sourcegraph/jsonrpc2 v0.1.0 h1:ohJHjZ+PcaLxDUjqk2NC3tIGsVa5bXThe1ZheSXOjuk= -github.com/sourcegraph/jsonrpc2 v0.1.0/go.mod h1:ZafdZgk/axhT1cvZAPOhw+95nz2I/Ra5qMlU4gTRwIo= +github.com/sourcegraph/jsonrpc2 v0.2.0 h1:KjN/dC4fP6aN9030MZCJs9WQbTOjWHhrtKVpzzSrr/U= +github.com/sourcegraph/jsonrpc2 v0.2.0/go.mod h1:ZafdZgk/axhT1cvZAPOhw+95nz2I/Ra5qMlU4gTRwIo= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= diff --git a/integrationtest/langserver/langserver_test.go b/integrationtest/langserver/langserver_test.go index 62b0fdcb8..c4188622b 100644 --- a/integrationtest/langserver/langserver_test.go +++ b/integrationtest/langserver/langserver_test.go @@ -19,10 +19,10 @@ import ( ) type jsonrpcMessage struct { + JSONRPC string `json:"jsonrpc"` ID int `json:"id,omitempty"` Method string `json:"method"` Params interface{} `json:"params"` - JSONRPC string `json:"jsonrpc"` } func TestMain(m *testing.M) {