turbot / flowpipe

Flowpipe is a cloud scripting engine. Automation and workflow to connect your clouds to the people, systems and data that matters.
https://flowpipe.io
GNU Affero General Public License v3.0
383 stars 16 forks source link

Missing line number when referencing an invalid input from an output? #799

Closed e-gineer closed 8 months ago

e-gineer commented 8 months ago

I created this pipeline:

pipeline "multi_step" {

  param "prompt" {
    default = "Do you approve?"
  }

  param "subject" {
    default = "Do you approve?"
  }

  param "notifiers" {
    default = ["default"]
  }

  output "approved" {
    value = alltrue([for decision in step.input.approve : decision.value == "approve"])
  }

}

I get this error (which is true):

2024-03-15 06:27:32 [flowpipe] error unable to start server: Internal Error: Failed to decode mod: invalid depends_on 'input.approve' - does not exist for pipeline approval.pipeline.multi_step

Can I have a file name and line number please? It's hard to find the actual source of this bug without code searching.

vhadianto commented 8 months ago

Fixed in pipe-fittings: https://github.com/turbot/pipe-fittings/commit/f383d85e5f8167baa93b43837e8beabff59b665c

Will be released as part of v0.4.1