-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Unexpected merge conflict when updating with nested object as argument in data file #1849
Comments
First issue might be fixed by #1813. For the second issue, when Copier runs the update after you've modified
I suppose that's how you get the merge conflict. And this behavior seems correct, although maybe not intuitive. IMO it stems from how Also, maybe my analysis is wrong. |
I'm running the latest version, so I don't think this resolved the issue I'm seeing.
Maybe I'm confused then. Is the data file not regarded as a kind of answer? I did some testing where I would store the items provided from the data file in the answers file, and I did see different behavior, but still the confusion persists. It would make sense to me that changes in the data file would apply as an answer change. To be clear, the file is marked with a conflict, when the template should simply update the value, as it does when changing an answer. Maybe it has something to do with the size of the data structure? |
The fix from #1813 was not released yet. |
Ah, my bad. I'll do some testing based on the master branch instead. |
I have tested master and can confirm that the merge bug has been fixed. It would be great to have it released. The other bug is reported here #1833 |
Describe the problem
Thank for a great tool! I have been using Copier for a while now and I am very happy with it.
However, recently I get an unexpected merge conflict when applying an update with a nested object as an argument within a data file.
I have attached a basic template to reproduce the issue.
This may be related to the following Issue regarding hidden merge conflict details in tools. I am experiencing the same problem in pycharm git integration.
#1833
Template
template-basic.zip
To Reproduce
Steps to reproduce:
In addition, I get an unexpected merge conflict when changing the items in the data file.
Logs
No response
Expected behavior
I would not expect any merge conflicts in the described conditions.
Screenshots/screencasts/logs
No response
Operating system
Linux
Operating system distribution and version
Ubuntu 22.04.5 LTS
Copier version
copier 9.4.1
Python version
3.12.2
Installation method
pipx+git
Additional context
No response
The text was updated successfully, but these errors were encountered: