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

Answers file setting / CLI switch behavior inconsistent with docs #1257

Open
sisp opened this issue Jul 18, 2023 · 3 comments
Open

Answers file setting / CLI switch behavior inconsistent with docs #1257

sisp opened this issue Jul 18, 2023 · 3 comments
Labels
bug triage Trying to make sure if this is valid or not
Milestone

Comments

@sisp
Copy link
Member

sisp commented Jul 18, 2023

Describe the problem

The answers file setting / CLI switch behavior is inconsistent with what the docs suggest. The docs state that this setting is a path relative to the destination path, but the subdirectory in a path to the answers file is ignored by the rendering and only the file name is used.

Template

📁 src/
├── 📄 {{ _copier_conf.answers_file }}.jinja
└── 📄 copier.yml

copier.yml content:

_answers_file: subdir/.custom-answers.yml

To Reproduce

$ copier copy src/ dst
No git tags found in template; using HEAD as ref

Copying from template version 0.0.0.post1.dev0+a4f2b63
    create  .
    create  .custom-answers.yml

Logs

n/a

Expected behavior

To be decided. IIRC, changing not only the file name but also its location via the answers file setting / CLI switch used to work some time ago, but I think #927 made it impossible. Should it be possible to override the location of the answers file or just its name when generating a new project?

Screenshots/screencasts/logs

No response

Operating system

Linux

Operating system distribution and version

Ubuntu 20.04

Copier version

8.1.0

Python version

CPython 3.9

Installation method

pipx+pypi

Additional context

No response

@sisp sisp added bug triage Trying to make sure if this is valid or not labels Jul 18, 2023
@yajo yajo added this to the Soon milestone Jul 18, 2023
@sisp

This comment was marked as off-topic.

@yajo

This comment was marked as off-topic.

@sisp

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Trying to make sure if this is valid or not
Projects
None yet
Development

No branches or pull requests

2 participants