Make poetry respect field order in poetry.lock

Viewed 697

Context

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:

diff

It goes like this for the whole lock file. Its main drawback is generation of conflicts when trying to merge.

Question

How can I force poetry to use existing order of fields? Or what other solution do you propose to this problem?

1 Answers

Solution

Use the same poetry version by all team members. Apparently poetry does not version... poetry ;)

Related