Having invalid options:version
value on explicit provider causes conversion to produce incorrect output
#702
Labels
kind/bug
Some behavior is incorrect or out of spec
What happened?
When attempting to use
pulumi convert
to generate additional examples from yaml to other languages, the other languages were missing the explicit provider.Example
Source YAML
Command used
pulumi convert --cwd ./examples/simple --language typescript --out ../test --logtostderr --generate-only --non-interactive
Generated Typescript
Output of
pulumi about
Additional context
I actually think this maybe should fail some sort of validation rather than succeeding incorrectly. In my testing, removing
version
or appendingv
to the front of the string actually makes it behave as expected. For exampleversion: v0.0.0-alpha.0
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).
The text was updated successfully, but these errors were encountered: