pulumi / pulumi-yaml

YAML language provider for Pulumi
Apache License 2.0
38 stars 11 forks source link

Allow version to be set dynamically #510

Open Zaid-Ajaj opened 9 months ago

Zaid-Ajaj commented 9 months ago

Fixes #508

This PR changes the definition of Version from a static *ast.StringExpr to ast.Expr so that it can a value which can be evaluated at runtime when running the program rather than just static strings. Anywhere else where want to know the version and we don't have an evaluator yet, we check if the version is a static string and get its value, otherwise we skip it.