Skip to content

Commit 10f8943

Browse files
committed
starlark/types: computed literal escape fixes
1 parent badd46c commit 10f8943

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ require (
77
github.com/golang/protobuf v1.3.2 // indirect
88
github.com/hashicorp/go-hclog v0.9.2
99
github.com/hashicorp/go-plugin v1.0.1
10-
github.com/hashicorp/hcl2 v0.0.0-20190702185634-5b39d9ff3a9a
10+
github.com/hashicorp/hcl2 v0.0.0-20190618163856-0b64543c968c
1111
github.com/hashicorp/terraform v0.12.3
1212
github.com/jessevdk/go-flags v1.4.0
1313
github.com/kr/pty v1.1.8 // indirect
1414
github.com/kylelemons/godebug v1.1.0 // indirect
15+
github.com/mcuadros/hcl2 v0.0.0-20190712010647-ace444864d00
1516
github.com/mitchellh/cli v1.0.0
1617
github.com/oklog/ulid v2.0.0+incompatible
1718
github.com/qri-io/starlib v0.4.2-0.20190710173850-cb41fc97dda5
1819
github.com/spf13/pflag v1.0.3 // indirect
1920
github.com/stretchr/objx v0.2.0 // indirect
21+
github.com/stretchr/testify v1.3.0
2022
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
2123
github.com/zclconf/go-cty v1.0.0
2224
go.starlark.net v0.0.0-20190711213017-77c1099ca038

go.sum

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh
229229
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce h1:xdsDDbiBDQTKASoGEZ+pEmF1OnWuu8AQ9I8iNbHNeno=
230230
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w=
231231
github.com/hashicorp/hcl2 v0.0.0-20181208003705-670926858200/go.mod h1:ShfpTh661oAaxo7VcNxg0zcZW6jvMa7Moy2oFx7e5dE=
232+
github.com/hashicorp/hcl2 v0.0.0-20190618163856-0b64543c968c h1:P96avlEdjyi6kpx6kTbTbuQb5GuZvVTrLK9FWKwTy6A=
232233
github.com/hashicorp/hcl2 v0.0.0-20190618163856-0b64543c968c/go.mod h1:FSQTwDi9qesxGBsII2VqhIzKQ4r0bHvBkOczWfD7llg=
233234
github.com/hashicorp/hcl2 v0.0.0-20190702185634-5b39d9ff3a9a/go.mod h1:FSQTwDi9qesxGBsII2VqhIzKQ4r0bHvBkOczWfD7llg=
234235
github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590/go.mod h1:n2TSygSNwsLJ76m8qFXTSc7beTb+auJxYdqrnoqwZWE=
@@ -483,6 +484,8 @@ github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpe
483484
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
484485
github.com/mcuadros/hcl2 v0.0.0-20190711172820-dd3dbf62a554 h1:XOp7Z8WiWrNayvvEo9Clc7fh63xRr9KYYW9V2yVeQAQ=
485486
github.com/mcuadros/hcl2 v0.0.0-20190711172820-dd3dbf62a554/go.mod h1:FSQTwDi9qesxGBsII2VqhIzKQ4r0bHvBkOczWfD7llg=
487+
github.com/mcuadros/hcl2 v0.0.0-20190712010647-ace444864d00 h1:qnjhW43Q1lVIuWtLzDONwc1iujUDLIsS066UyHGBFAY=
488+
github.com/mcuadros/hcl2 v0.0.0-20190712010647-ace444864d00/go.mod h1:kQuWn12iFepCKkwkei+aHXznYdyBUJ5un1ZnD5vpHqI=
486489
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
487490
github.com/microcosm-cc/bluemonday v1.0.1/go.mod h1:hsXNsILzKxV+sX77C5b8FSuKF00vh2OMYv+xgHpAMF4=
488491
github.com/miekg/dns v1.0.8/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=

starlark/types/computed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func NewComputedWithPath(r *Resource, t cty.Type, name, path string) *Computed {
4646
t: t,
4747
name: name,
4848
path: path,
49-
sString: starlark.String(fmt.Sprintf("$${%s}", path)),
49+
sString: starlark.String(fmt.Sprintf("${%s}", path)),
5050
}
5151
}
5252

0 commit comments

Comments
 (0)