flowpipe icon indicating copy to clipboard operation
flowpipe copied to clipboard

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

Open e-gineer opened this issue 11 months ago • 1 comments

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

e-gineer avatar Mar 14 '24 20:03 e-gineer

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] avatar May 14 '24 08:05 github-actions[bot]

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

github-actions[bot] avatar Jun 14 '24 08:06 github-actions[bot]