rather annoying bug(?) that's been around forever,...
# esc
g
rather annoying bug(?) that's been around forever, would love to get it fixed: if you have a multiline yaml in an esc env like:
Copy code
values:
  myYaml: |
    a: b
    c: d
if any line has a trailing space, the yaml gets collapsed into a string upon saving like:
Copy code
values:
  myYaml: "a: b \nc: d"
If fixing this is hard just getting a warning on the lines that have the trailing space would be awesome.
equally great feature would be to have a builtin function lke
fn::toYamlString
because then I could just have this whole yaml be a normal object and then call the fn when I need it as a yaml string, eg:
Copy code
values:
  myData:
    a: b
    c: d
  myYaml:
    fn::toYamlString(${myData})
s
Good callout! Could you open an issue against this repo: https://github.com/pulumi/pulumi-yaml
f
no need to create an issue - we have an existing issue for this already https://github.com/pulumi/esc/issues/217 . I'll bring this up with the team (Edit: i just realized that issue was by you!)
toYamlString sounds interesting - feel free to create an issue for that in https://github.com/pulumi/esc/issues looks like we had an issue for this too: https://github.com/pulumi/esc/issues/303
g
thanks sean - i forgot i filed an issue about this already 😂
🙂 1