SIOS-Technology-Inc / dacrane

"Dacrane" is a Delivery as Code (DaC) tool for deploying cloud infrastructures and applications anywhere.
Apache License 2.0
61 stars 1 forks source link

Cannot specify an argument for expression expression only #52

Closed t-ikeda-sti closed 9 months ago

t-ikeda-sti commented 1 year ago
$ dacrane apply api-image api-v1 \
  -a '"${{ instances.base.modules.acr }}"' 

panic: yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `${{ ins...` into map[string]interface {}
t-ikeda-sti commented 12 months ago
$ dacrane apply api-image api-v1 \
  -a '
image: "${{ instances.api-v1.modules.local_image.image }}"
tag:  "${{ instances.apiv1.modules.local_image.tag }}"'
$ dacrane apply api-image api-v1 \
  -a '"${{ instances.api-v1.modules.local_image }}"'
const foo = { a: 1, b: 2 }

const bar = { a: foo.a, b: foo.b }
// const bar = { foo: foo }
// const bar = foo
t-ikeda-sti commented 9 months ago

not reproduce