Skip to content

Is this a valid use for when: false? #678

Answered by yajo
pfmoore asked this question in Q&A
Discussion options

You must be logged in to vote

As the docs say:

copier/docs/configuring.md

Lines 144 to 147 in c16b0b8

If a question is skipped, its answer will be:
- The default value, if you're generating the project for the 1st time.
- The last answer recorded, if you're updating the project.

But if we use when to have computed values, then we'd have to process the answer always, no matter if it has changed in a previous update.

It could be a behaviour, but it could lead to surprises, like: why did Copier update this question if I didn't answer it? And I like to keep it predictable whenever possible.

This has been discussed before. You can see the whole story in #629. It contains some ideas that can…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@pfmoore
Comment options

Comment options

You must be logged in to vote
1 reply
@pfmoore
Comment options

Answer selected by pfmoore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants