Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
e-gineer opened this issue Mar 14, 2024 · 2 comments
Closed

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

e-gineer opened this issue Mar 14, 2024 · 2 comments
Labels
enhancement New feature or request stale

Comments

@e-gineer
Copy link
Contributor

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 e-gineer added the enhancement New feature or request label Mar 14, 2024
Copy link

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 github-actions bot added the stale label May 14, 2024
Copy link

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

1 participant