We use poetry to track dependencies in our python project. We commit poetry.lock
into git.
I added recently one package with poetry add
. But then in diff I observed that poetry changed order to fields in the whole file generating a huge useless diff:
It goes like this for the whole lock file. Its main drawback is generation of conflicts when trying to merge.
How can I force poetry
to use existing order of fields? Or what other solution do you propose to this problem?
Use the same poetry version by all team members. Apparently poetry does not version... poetry ;)
Poetry diffs are often hard to make sense of. To keep track of what your dependencies are I have written a Github Action that will post a nicely readable summary of all changes to your pull requests. Maybe you will find this helpful: https://github.com/marketplace/actions/diff-poetry-lock
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With