You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a race condition in samples/shellContext.hcl (see [1] below) caused by the fact that an edge is not being created between task.touch-file and param.var-name (see [2] below).
This is likely because dependency generation fails when lookups are present in the keys of embedded maps.
[1] shellContext.hcl
/* These tasks demonstrate the use of 'env' and 'dir' for the shell module. Italso demonstrates how the working directory and environment variables can bepopulated from params. */param"working-directory" {
default="/tmp/converge-working"
}
param"test-file" {
default="test-file"
}
param"var-name" {
default="ROLE"
}
param"listen-address" {
default=":4001"
}
task"directory" {
check="test -d {{param `working-directory`}}"apply="mkdir -p {{param `working-directory`}}"
}
task"touch-file" {
interpreter="/bin/bash"check_flags=["-n"]
dir="{{param `working-directory`}}"env {
"{{param `var-name`}}" = "test""ADDRESS" = "{{param `listen-address`}}"
}
check="cat {{param `test-file`}} | grep \"test: :4001\""apply="echo $ROLE: $ADDRESS > test-file"depends=["task.directory"]
}
There is a race condition in
samples/shellContext.hcl
(see [1] below) caused by the fact that an edge is not being created betweentask.touch-file
andparam.var-name
(see [2] below).This is likely because dependency generation fails when lookups are present in the keys of embedded maps.
[1] shellContext.hcl
[2] graph output
The text was updated successfully, but these errors were encountered: