Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Copier update remove files #2339

@alexandre-bernard

Description

@alexandre-bernard

Describe the problem

When updating, Copy deletes files that are not impacted by template updates

Template

https://github.com/alexandre-bernard/test-copier

To Reproduce

Run copier copy :
copier copy -w --trust --vcs-ref 9b7e51c https://github.com/alexandre-bernard/test-copier.git test
Accept default answers

Run copier update in the test directory :
copier update --trust --vcs-ref=adbea450 -T -g -A

Logs

Expected behavior

No change in the test directory.
Here, file2 is deleted...

Screenshots/screencasts/logs

No response

Operating system

Linux

Operating system distribution and version

Debian GNU/Linux 13

Copier version

9.10.2

Python version

3.12.11

Installation method

uvx+pypi

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriageTrying to make sure if this is valid or not

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions