garden
garden copied to clipboard
0.13: [Bug]: Variable referencing CLI parameter can't be resolved when running `dev` command
Garden Bonsai (0.13) Bug
Current behavior
If a project-level variable definition references a command-line parameter via ${command.params.*}
(e.g. ${command.params.env}
), the variable can't be resolved when starting garden dev
command, and the error is printed:
Failed to resolve project configuration.
Unable to load Garden project found at ~/Repositories/repros/split-string-index-access: Error: Invalid template string (${split(command.params.env, ".")}) at path variables.env: Error validating argument 'string' for split helper function:
value must be a string
The dev console starts, the process doesn't crash.
Expected behavior
The variable should be resolved.
Reproducible example
See #6150.
Workaround
Unknown
Additional context
See the original Discord thread.
Your environment
garden version 0.13.31