Replies: 2 comments
-
Copier is lacking this feature, but it seems like a good idea. I opened #1522 to track it. |
Beta Was this translation helpful? Give feedback.
-
It would be great for this to be supported by Copier, but here are a couple of workarounds in the meantime. 1: Monkeypatch
|
Beta Was this translation helpful? Give feedback.
-
I've been bitten a couple of times by this workflow:
copier.yml
It would appear that Jinja does this by default, and the way it suggests to raise an error is by supplying
undefined=StrictUndefined
in itsEnvironment
. I tried this incopier.yml
:But it fails because it can't turn the string into a callable:
Is there a way to make the
copier copy
command fail if you use an undefined name in a template?Related to #313 but with a different aim in mind
Beta Was this translation helpful? Give feedback.
All reactions