We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
include
I have the following config:
kind: Module type: exec name: variables variables: includes: ["foo", "bar"] # ... --- kind: Module type: container name: image include: ${modules.variables.var.includes} # ... --- kind: Module type: kubernetes name: service build: dependencies: [image] # ...
When I run garden build image I get the following error:
garden build image
Failed resolving one or more modules: service: hashes.join is not a function
So resolving the service module fails when attempting to build the image module.
service
image
Looks like this is the offending piece of code: https://github.com/garden-io/garden/blob/master/core/src/vcs/vcs.ts#L322
When logging the output I see that the value we're attempting to join is the following string:
"${modules.variables.var.includes}"
...as opposed to an array.
So clearly the value hasn't been resolved yet and is causing issues when resolving a down stream dependency.
See above.
Do not use variables in include and instead hard code (or use project level variables, haven't tried).
The text was updated successfully, but these errors were encountered:
@eysi09 it looks like this was fixed in 0.12.41. I reproduced it with 0.12.40, but 0.12.41 worked fine. Closing this.
0.12.41
0.12.40
Sorry, something went wrong.
No branches or pull requests
Bug
Current Behavior
I have the following config:
When I run
garden build image
I get the following error:So resolving the
service
module fails when attempting to build theimage
module.Looks like this is the offending piece of code: https://github.com/garden-io/garden/blob/master/core/src/vcs/vcs.ts#L322
When logging the output I see that the value we're attempting to join is the following string:
...as opposed to an array.
So clearly the value hasn't been resolved yet and is causing issues when resolving a down stream dependency.
Reproducible example
See above.
Workaround
Do not use variables in
include
and instead hard code (or use project level variables, haven't tried).The text was updated successfully, but these errors were encountered: