-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
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
tool/flow tasks deps lost when struct value pass in task field #2516
Labels
Comments
morlay
changed the title
[v0.6.0-rc.1] tool/flow tasks deps is different from v0.5.0.
tool/flow tasks deps lost when struct value pass in task field
Aug 2, 2023
With package test
import (
"tool/cli"
"tool/exec"
)
input: "x"
command: build: {
_prepare: exec.Run & {
cmd: "echo \(input)"
stdout: string
}
_env: {
INPUT: _prepare.stdout
}
_run: exec.Run & {
cmd: [
"sh",
"-c",
"echo ${INPUT}",
]
// re iter the _env
env: {
for k, v in _env {
"\(k)": v
}
}
stdout: string
}
output: _run.stdout
}
command: print: cli.Print & {
text: command.build.output
} But still throw error in |
issue2516.txtar Could pass with
|
Closing because this is very likely connected to #2517 (comment). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
Yes
What did you do?
What did you expect to see?
comand.build._prepare
should execute beforecomand.build._run
What did you see instead?
comand.build._prepare
not executedthen
comand.build._run
throw the errornon-concrete value string
The text was updated successfully, but these errors were encountered: