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

Add support for setup and teardown #12

Open
evanmcclure opened this issue Sep 1, 2022 · 1 comment
Open

Add support for setup and teardown #12

evanmcclure opened this issue Sep 1, 2022 · 1 comment

Comments

@evanmcclure
Copy link

Add support for setup and teardown.

@yugui
Copy link
Owner

yugui commented Sep 3, 2022

What use case do you have?

The lazy-evaluation nature of Jsonnet does not evaluate an expression unless it is directly or indirectly referred by the final output. The purely-functional nature of Jsonnet does not usually allow us to have side-effects.

It means that you just need to refer the expression when you want to guarantee it is evaluated, and that you don't have any side-effects that you have to cleanup in "teardown".

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

2 participants