https://pantsbuild.org/ logo
#general
Title
# general
l

limited-insurance-37393

06/01/2022, 5:21 PM
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

hundreds-father-404

06/01/2022, 5:27 PM
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

limited-insurance-37393

06/01/2022, 5:30 PM
Thanks! 🙂