<#18932 Using `install_from_resolve` with a manual...
# github-notifications
c
#18932 Using `install_from_resolve` with a manually generated lockfile raises AssertionError Issue created by d-tw Describe the bug Using
install_from_resolve
with
[pytest]
raises an AssertionError (from
assert loaded_lockfile.is_pex_native
in source) when the associated lockfile is a manually generated requirements-style lockfile. The relevant parts of the pants.toml:
Copy code
[GLOBAL]
pants_version = "2.16.0rc0"

[python]
enable_resolves = true
interpreter_constraints = ['==3.10.*']
resolves_generate_lockfiles = false

[python.resolves]
python-default = "src/py/deps.lock"

[pytest]
install_from_resolve = "python-default"
The lockfile contains the following dependencies (and their transitive dependencies):
Copy code
poetry = "1.4.2"
pytest-cov = ">=2.12,!=2.12.1,<3.1"
pytest-xdist = ">=2.5,<3"
Am I missing something in my config? Is this use-case not supported? Pants version 2.16.0rc0 OS Tested on macOS. Not tested on other platforms. Additional info The contents of
src/py/deps.lock
is in this gist. pantsbuild/pants