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
356 stars 13 forks source link

Can I use a param as a default for another param in a pipeline? #793

Closed e-gineer closed 3 months ago

e-gineer commented 6 months ago

I'd like to do this:

pipeline "approve" {

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

  param "subject" {
    default = param.prompt
  }

  // ...

}

But I get this parse error:

2024-03-14 16:17:46 [flowpipe] error Failed watching workspace for mod mod.approval: failed to reload workspace: Bad Request: Failed to resolve dependencies after 2 passes. Unresolved blocks:
   pipeline.test -> pipeline.approve
   pipeline.approve -> param.prompt
     MISSING: param.prompt
github-actions[bot] commented 4 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 3 months ago

This issue was closed because it has been stalled for 90 days with no activity.