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

Files with corresponding tmpl version not ignored when using subdirectory #1891

Open
cbrown1234 opened this issue Dec 16, 2024 · 0 comments
Open
Labels
bug triage Trying to make sure if this is valid or not

Comments

@cbrown1234
Copy link

cbrown1234 commented Dec 16, 2024

Describe the problem

When your template is in a subdirectory, it doesn't automatically ignore the files that have a .tmpl version (feature added here: #99).

Template

template.zip

To Reproduce

  1. copier copy . /tmp/example
  2. Entry project name
  3. See conflict

(I have also included a test in the MR with the fix I will raise soon)

Logs

copier copy . /tmp/example
No git tags found in template; using HEAD as ref
🎤 What is your project name?
   jdsakl

Copying from template version 0.0.0.post9.dev0+16f462d
    create  README.md
    create  .jdsakl-answers.yml
  conflict  README.md
 Overwrite README.md? [Y/n] y

Expected behavior

It should not show a conflict and pause for an overwrite

Screenshots/screencasts/logs

No response

Operating system

Linux

Operating system distribution and version

Ubuntu 22.04 (WSL2)

Copier version

copier 9.4.1

Python version

CPython 3.11

Installation method

pipx+pypi

Additional context

I have a fix in an PR I will raise soon

@cbrown1234 cbrown1234 added bug triage Trying to make sure if this is valid or not labels Dec 16, 2024
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

1 participant