Skip to content

Re-use value of _answers-file #714

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

You must be logged in to vote

I'm not sure if I understand you correctly, but if you're wanting to use a different answers file name, then:

  1. When you copy the template for the 1st time, it will take the default defined in copier.yml if -a is not used in the CLI.
  2. For next updates, you need to specify the answers file you're updating from (because it's not the default one): copier -a .custom-answers.yml update

This is expected behaviour, because I can tell Copier what's the default value for an answers file, but once it's recorded, Copier cannot know which template are you updating unless you point it to an answers file (where that info is recorded).

Replies: 1 comment 1 reply

Comment options

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

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