Skip to content

Commit

Permalink
Bump terraform-schema (hashicorp#546)
Browse files Browse the repository at this point in the history
This brings hashicorp/terraform-schema#56 to add support for
`isRequired` in variable schema.
  • Loading branch information
beandrad authored Jun 10, 2021
1 parent c4f537d commit 62f549a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/hashicorp/terraform-exec v0.13.3
github.com/hashicorp/terraform-json v0.11.0
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896
github.com/hashicorp/terraform-schema v0.0.0-20210610083714-03085295bd36
github.com/hashicorp/terraform-schema v0.0.0-20210610085118-e42d6aa8c63d
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/mh-cbon/go-fmt-fail v0.0.0-20160815164508-67765b3fbcb5
github.com/mitchellh/cli v1.1.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ github.com/hashicorp/terraform-json v0.11.0 h1:4zDqqW2F3kOysORIaYKFGgWDYIRA3hwqx
github.com/hashicorp/terraform-json v0.11.0/go.mod h1:pmbq9o4EuL43db5+0ogX10Yofv1nozM+wskr/bGFJpI=
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 h1:1FGtlkJw87UsTMg5s8jrekrHmUPUJaMcu6ELiVhQrNw=
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896/go.mod h1:bzBPnUIkI0RxauU8Dqo+2KrZZ28Cf48s8V6IHt3p4co=
github.com/hashicorp/terraform-schema v0.0.0-20210610083714-03085295bd36 h1:sqpjt62JAEyiZHns3PR/wZVILmaJEsF2zwkj6rCchfA=
github.com/hashicorp/terraform-schema v0.0.0-20210610083714-03085295bd36/go.mod h1:6HnR9FvXrFimOgw3U/9Y1w8J02RJj6YWm7WSOFb4iEM=
github.com/hashicorp/terraform-schema v0.0.0-20210610085118-e42d6aa8c63d h1:1vQ8qwBeZDOqt+UmuZ8D+hRnS3ilLHziV8XXBkzDAW8=
github.com/hashicorp/terraform-schema v0.0.0-20210610085118-e42d6aa8c63d/go.mod h1:6HnR9FvXrFimOgw3U/9Y1w8J02RJj6YWm7WSOFb4iEM=
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0=
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg=
github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw=
Expand Down
2 changes: 1 addition & 1 deletion internal/langserver/handlers/complete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ func TestVarsCompletion_withValidData(t *testing.T) {
{
"label": "test",
"kind": 10,
"detail": "string",
"detail": "required, string",
"insertTextFormat":1,
"textEdit": {
"range": {"start":{"line":0,"character":0}, "end":{"line":0,"character":0}},
Expand Down
4 changes: 2 additions & 2 deletions internal/langserver/handlers/hover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func TestVarsHover_withValidData(t *testing.T) {
"textDocument": {
"version": 0,
"languageId": "terraform",
"text": "variable \"test\" {\n type=string\n}\n",
"text": "variable \"test\" {\n type=string\n sensitive=true}\n",
"uri": "%s/variables.tf"
}
}`, tmpDir.URI())})
Expand Down Expand Up @@ -228,7 +228,7 @@ func TestVarsHover_withValidData(t *testing.T) {
"result": {
"contents": {
"kind": "plaintext",
"value": "test string"
"value": "test required, sensitive, string"
},
"range": {
"start": { "line":0, "character":0 },
Expand Down

0 comments on commit 62f549a

Please sign in to comment.