Is it possible to get pants to use my existing `po...
# general
l
Is it possible to get pants to use my existing
poetry.lock
as the lockfile when pulling dependencies? For example I'm trying to generate a
pex_binary
from a dependency specified in
pyproject.toml
and locked in
poetry.lock
, but when I run the package goal it seems to be trying to resolve the versions directly. When I looked at trying to use the
resolves
and set the lockfile type to
poetry
it doesn't seem to be using the same Python interpreter as what exists in the Poetry venv...
h
Hey Tobias, you can do this by running
poetry export
on your current lockfile. Still use
[python].resolves
, but set
[python].resolves_generate_lockfiles = false
l
Thanks! 🙂