Skip to content

Commit ec28f70

Browse files
authored
Bump terraform-schema & hcl-lang (#1869)
* Bump hcl-lang to `9d252ff` * Bump terraform-schema to `9097f9e` * Add changelog entries * Add ephemeral attribute to test
1 parent e4e739c commit ec28f70

File tree

6 files changed

+44
-6
lines changed

6 files changed

+44
-6
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: BUG FIXES
2+
body: Avoid copying constraints for attribute schemas
3+
time: 2024-11-15T15:01:20.496555+01:00
4+
custom:
5+
Issue: "426"
6+
Repository: hcl-lang
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: ENHANCEMENTS
2+
body: 'backend/s3: Reflect use_lockfile (v1.10)'
3+
time: 2024-11-15T15:01:54.796792+01:00
4+
custom:
5+
Issue: "419"
6+
Repository: terraform-schema
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: ENHANCEMENTS
2+
body: 'backend/s3: Remove deprecated assume role attributes (v1.10)'
3+
time: 2024-11-15T15:02:17.251199+01:00
4+
custom:
5+
Issue: "420"
6+
Repository: terraform-schema

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ require (
1313
github.com/hashicorp/go-uuid v1.0.3
1414
github.com/hashicorp/go-version v1.7.0
1515
github.com/hashicorp/hc-install v0.9.0
16-
github.com/hashicorp/hcl-lang v0.0.0-20241029094326-4b65a8528795
16+
github.com/hashicorp/hcl-lang v0.0.0-20241115124434-9d252ff73a68
1717
github.com/hashicorp/hcl/v2 v2.22.0
1818
github.com/hashicorp/terraform-exec v0.21.0
1919
github.com/hashicorp/terraform-json v0.23.0
2020
github.com/hashicorp/terraform-registry-address v0.2.3
21-
github.com/hashicorp/terraform-schema v0.0.0-20241113181710-ea3872fef6cf
21+
github.com/hashicorp/terraform-schema v0.0.0-20241115125457-9097f9e5a82e
2222
github.com/mcuadros/go-defaults v1.2.0
2323
github.com/mh-cbon/go-fmt-fail v0.0.0-20160815164508-67765b3fbcb5
2424
github.com/mitchellh/cli v1.1.5

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ github.com/hashicorp/hc-install v0.9.0 h1:2dIk8LcvANwtv3QZLckxcjyF5w8KVtiMxu6G6e
223223
github.com/hashicorp/hc-install v0.9.0/go.mod h1:+6vOP+mf3tuGgMApVYtmsnDoKWMDcFXeTxCACYZ8SFg=
224224
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
225225
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
226-
github.com/hashicorp/hcl-lang v0.0.0-20241029094326-4b65a8528795 h1:x17XGul8WRQsA0hgJEGtNtp0EpRqK01n3Px4INLqlGc=
227-
github.com/hashicorp/hcl-lang v0.0.0-20241029094326-4b65a8528795/go.mod h1:PyTvJMnm3v2F0Oa654gEfTg2H9muPzYDA46lvaGrRy4=
226+
github.com/hashicorp/hcl-lang v0.0.0-20241115124434-9d252ff73a68 h1:AhKd5zK/+uiSRCmjpyQqZ8nSDBwiIz2fF5D4nXIYdys=
227+
github.com/hashicorp/hcl-lang v0.0.0-20241115124434-9d252ff73a68/go.mod h1:3HWmoYgqN9HnX3GXCIPbfjLNT48F/0dqY5SP8V9cmIs=
228228
github.com/hashicorp/hcl/v2 v2.22.0 h1:hkZ3nCtqeJsDhPRFz5EA9iwcG1hNWGePOTw6oyul12M=
229229
github.com/hashicorp/hcl/v2 v2.22.0/go.mod h1:62ZYHrXgPoX8xBnzl8QzbWq4dyDsDtfCRgIq1rbJEvA=
230230
github.com/hashicorp/terraform-exec v0.21.0 h1:uNkLAe95ey5Uux6KJdua6+cv8asgILFVWkd/RG0D2XQ=
@@ -233,8 +233,8 @@ github.com/hashicorp/terraform-json v0.23.0 h1:sniCkExU4iKtTADReHzACkk8fnpQXrdD2
233233
github.com/hashicorp/terraform-json v0.23.0/go.mod h1:MHdXbBAbSg0GvzuWazEGKAn/cyNfIB7mN6y7KJN6y2c=
234234
github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI=
235235
github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM=
236-
github.com/hashicorp/terraform-schema v0.0.0-20241113181710-ea3872fef6cf h1:rUFHjz0LWE7jM98hz2p5MDGtHq9oA8ZbDCY28VjcZtg=
237-
github.com/hashicorp/terraform-schema v0.0.0-20241113181710-ea3872fef6cf/go.mod h1:hwYMiQp/tVcJtYfbNSxEEK+ilauXwwtZgpLXmeUBVGg=
236+
github.com/hashicorp/terraform-schema v0.0.0-20241115125457-9097f9e5a82e h1:yozV7l40vatIUPCYTeTqpPvOKsPDOd00kg8Tetf4VeQ=
237+
github.com/hashicorp/terraform-schema v0.0.0-20241115125457-9097f9e5a82e/go.mod h1:hwYMiQp/tVcJtYfbNSxEEK+ilauXwwtZgpLXmeUBVGg=
238238
github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ=
239239
github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc=
240240
github.com/hexops/autogold v1.3.1 h1:YgxF9OHWbEIUjhDbpnLhgVsjUDsiHDTyDfy2lrfdlzo=

internal/langserver/handlers/complete_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,26 @@ func TestModuleCompletion_withValidData_tooNewVersion(t *testing.T) {
557557
"newText": "description"
558558
}
559559
},
560+
{
561+
"label": "ephemeral",
562+
"kind": 10,
563+
"detail": "optional, bool",
564+
"documentation": "Whether the value is ephemeral and should not be persisted in the state",
565+
"insertTextFormat": 1,
566+
"textEdit": {
567+
"range": {
568+
"start": {
569+
"line": 1,
570+
"character": 0
571+
},
572+
"end": {
573+
"line": 1,
574+
"character": 0
575+
}
576+
},
577+
"newText": "ephemeral"
578+
}
579+
},
560580
{
561581
"label": "nullable",
562582
"kind": 10,

0 commit comments

Comments
 (0)