pants icon indicating copy to clipboard operation
pants copied to clipboard

The pantsbuild/pants repo (rather than consumers) has unpinned deps

Open stuhood opened this issue 1 year ago • 1 comments

The pants script in the pantsbuild/pants repo builds a venv directly from an unpinned requirements.txt file: this means that it can bootstrap non-deterministically.

As an example: strawberry transitively depends on pydantic, which depends on typing-extensions. One of those dependency edges floats, which recently caused the 2.13.x branch to fail to bootstrap with:

ERROR: pydantic 1.10.2 has requirement typing-extensions>=4.1.0, but you'll have typing-extensions 4.0.1 which is incompatible.

stuhood avatar Sep 07 '22 23:09 stuhood

One way to resolve this might be to create the venv that we use directly from the 3rdparty/python/user_reqs.lock lockfile, via PEX.

stuhood avatar Sep 07 '22 23:09 stuhood