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

Integrate runIf functionality into mkEffect #65

Open
roberth opened this issue May 18, 2022 · 0 comments
Open

Integrate runIf functionality into mkEffect #65

roberth opened this issue May 18, 2022 · 0 comments

Comments

@roberth
Copy link
Member

roberth commented May 18, 2022

The dependencies attribute usually covers the prebuilt one anyway, so we don't gain much from the extra complexity of multiple attrs.

Plan: two parameters, a low-level one and a high-level one. The low level one controls whether mkEffect returns an effect or a dependency-only "build". The high level one has a default implementation in terms of the low level one, but is intended to be altered by effect functions like nixopsDeploy to perform a networked "read-only" check instead of a deployment.

Goal: the way of making things conditional carries over between all effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant