It is possible and desirable to skip lock file creation?
robdimsdale opened this issue · comments
Running poetry install
creates a poetry.lock
file. Typically this file is checked in and already exists when this buildpack runs. If it doesn't exist, however, this buildpack will create it.
It isn't actually required for poetry run
(or running python some-file.py
via a Procfile
), as we already populate the specific versions of the application dependencies in the virtual environment, so this could potentially be an unnecessary step.
Can we skip the generation? Is this a desirable step?
There is currently no option in poetry
to skip generation of the poetry.lock
file during poetry install
.
Also, running poetry run
on a project without a lockfile doesn't seem to add any time.
So, in conclusion, it is not possible or desirable to skip lock file creation.