runner: switch to client API
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
var (
|
||||
ActionSelector = cue.Str("actions")
|
||||
OutputSelector = cue.Str("outputs")
|
||||
ClientSelector = cue.Str("client")
|
||||
)
|
||||
|
||||
type Plan struct {
|
||||
|
@@ -89,9 +89,9 @@ func (r *Runner) initTasks() {
|
||||
}
|
||||
}
|
||||
|
||||
// If an `output` task is targeting an allowed task, allow the output task as well
|
||||
// If a `client` task is targeting an allowed task, allow the output task as well
|
||||
for _, t := range flow.Tasks() {
|
||||
if t.Path().Selectors()[0] != OutputSelector {
|
||||
if t.Path().Selectors()[0] != ClientSelector {
|
||||
continue
|
||||
}
|
||||
for _, dep := range t.Dependencies() {
|
||||
|
Reference in New Issue
Block a user