diff --git a/code/go-api/flow/custom.go b/code/go-api/flow/custom.go index b1e700f..cd1ea4d 100644 --- a/code/go-api/flow/custom.go +++ b/code/go-api/flow/custom.go @@ -97,7 +97,7 @@ func (C *CustomTask) Run(t *flow.Task, pErr error) error { next := map[string]interface{}{ "bar": C.Val + 1, } - hello := val.Lookup("hello") + hello := val.LookupPath(cue.ParsePath("foo")) if hello.Exists() { next["hello"] = "world" }