Skip to content

Commit 33be997

Browse files
authored
Fix incorrect validation for for-expressions (#1890)
* Bump hcl-lang to `4f7c1c9` * Add changelog * Update changelog
1 parent 281897f commit 33be997

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
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: Fix incorrect validation of references by correctly detecting tuple and object expressions created from for-expressions
3+
time: 2024-12-09T15:10:45.0655+01:00
4+
custom:
5+
Issue: "1890"
6+
Repository: terraform-ls

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/hashicorp/go-uuid v1.0.3
1515
github.com/hashicorp/go-version v1.7.0
1616
github.com/hashicorp/hc-install v0.9.0
17-
github.com/hashicorp/hcl-lang v0.0.0-20241203131115-8d59b17219fd
17+
github.com/hashicorp/hcl-lang v0.0.0-20241209140757-4f7c1c9bbc32
1818
github.com/hashicorp/hcl/v2 v2.23.0
1919
github.com/hashicorp/terraform-exec v0.21.0
2020
github.com/hashicorp/terraform-json v0.23.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ github.com/hashicorp/hc-install v0.9.0 h1:2dIk8LcvANwtv3QZLckxcjyF5w8KVtiMxu6G6e
228228
github.com/hashicorp/hc-install v0.9.0/go.mod h1:+6vOP+mf3tuGgMApVYtmsnDoKWMDcFXeTxCACYZ8SFg=
229229
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
230230
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
231-
github.com/hashicorp/hcl-lang v0.0.0-20241203131115-8d59b17219fd h1:Ap3K7uO+Dnd2ZSl5vQvIh63Z/QWaI5eTgRYfdYtaxH8=
232-
github.com/hashicorp/hcl-lang v0.0.0-20241203131115-8d59b17219fd/go.mod h1:5NUxE6UGpjm8iW/pY70BJWunDMkc73d7HTtvefU8B/c=
231+
github.com/hashicorp/hcl-lang v0.0.0-20241209140757-4f7c1c9bbc32 h1:7vZlQmXm2ypWJyRBPeX1Mson/dsReRDw7yIoLQGL/8w=
232+
github.com/hashicorp/hcl-lang v0.0.0-20241209140757-4f7c1c9bbc32/go.mod h1:IZQIEGz+2WgWElRh8Tkc8gxT9AzPXMrRBjn2+iBkqdc=
233233
github.com/hashicorp/hcl/v2 v2.23.0 h1:Fphj1/gCylPxHutVSEOf2fBOh1VE4AuLV7+kbJf3qos=
234234
github.com/hashicorp/hcl/v2 v2.23.0/go.mod h1:62ZYHrXgPoX8xBnzl8QzbWq4dyDsDtfCRgIq1rbJEvA=
235235
github.com/hashicorp/terraform-exec v0.21.0 h1:uNkLAe95ey5Uux6KJdua6+cv8asgILFVWkd/RG0D2XQ=

0 commit comments

Comments
 (0)