Hello, I am seeing the following error when trying...
# general
d
Hello, I am seeing the following error when trying to generate a lockfile
Copy code
'<' not supported between instances of 'FileArtifact' and 'VCSArtifact'
Seems related to the this issue which was fixed last month (in Pex 2.1.137). Is pants
2.16.0
using an older pex version (2.1.126 I assume)? Any plans to update it? Is there anyway to get around this error?
b
It's upgraded in future releases,. For current releases like 2.16, you can manually override via the
[pex-cli]
section of `pants.toml`: https://www.pantsbuild.org/docs/reference-pex-cli For instance:
Copy code
[pex-cli]
version = "v2.1.137"
known_versions = [
    "v2.1.137|macos_arm64|faad51a6a108fba9d40b2a10e82a2646fccbaf8c3d9be47818f4bffae02d94b8|4098329",
    "v2.1.137|macos_x86_64|faad51a6a108fba9d40b2a10e82a2646fccbaf8c3d9be47818f4bffae02d94b8|4098329",
    "v2.1.137|linux_x86_64|faad51a6a108fba9d40b2a10e82a2646fccbaf8c3d9be47818f4bffae02d94b8|4098329",
    "v2.1.137|linux_arm64|faad51a6a108fba9d40b2a10e82a2646fccbaf8c3d9be47818f4bffae02d94b8|4098329"
]
I constructed the
known_versions
based on the default value on that documentation page, plus the current configuration https://github.com/pantsbuild/pants/blob/073c224fb499302383cd0bf26d43004389655d95/src/python/pants/backend/python/util_rules/pex_cli.py#L43-L54 . One can also compute it by downloading the
pex
artifact from https://github.com/pantsbuild/pex/releases/tag/v2.1.137 and computing the sha256 hash and length
👍 1
🙏 1
d
Thank you!