pulumi / pulumi-ai

222 stars 15 forks source link

invalid yaml output #49

Open dixler opened 11 months ago

dixler commented 11 months ago

What happened?

invalid YAML output.

Notice a bug or have a feature request? Open an issue on GitHub!

If invalid outputs are not of concern, def close the issue.

name: pulumi-random-error
runtime: nodejs
description: Reproduce update error for pulumi-random with resource outputs as inputs to others
main  - name: randomString
    type: random:index/randomStringRandomString
    args      length 10
      special false
  - name: randomPet
    type: random:index/randomPet:RandomPet
    args:
      length: "{{.outputs.length}}"
      prefix: "{{.outputs.result}}"
    dependsOn:
      - randomString

https://www.pulumi.com/ai/?convid=b4113e10-322c-4fba-b4b6-7c144d181232

Expected Behavior

valid YAML output.

Steps to reproduce

see link

Output of pulumi about

n/a

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

iwahbe commented 10 months ago

https://www.pulumi.com/ai/?convid=3926fe3b-97bc-49ed-a83e-d7750131f357 is another example of invalid yaml.

lukehoban commented 1 week ago

This is much more accurate now. Here are current examples:

However, it consistently doesn't include the name and runtime sections` of the output YAML. So will leave this open to track that.