Add `poetry.lock` to git repository
Dependencies need to be frozen, to be sure that every developers and releases are made with the same dependencies and furthermore on the same sub-dependencies, thanks to the file poetry.lock
file.
Poetry use the poetry.lock
to lock dependencies and sub-dependencies.
poetry install
use poetry.lock
to install exactly the same dependencies.
When updates need to be done,
poetry update
install updated dependencies version according to project.toml and write the new state to poetry.lock
.
So, to share exactly the same dependencies, poetry.lock
have to be included in git.
This can help your team to always test against the same dependency versions.