enough-analyst-54434
07/20/2021, 5:46 PM./pants lock ::
doesn't work due to testprojects/
afaict (due to the badreq
req) and running with ./pants lock src:: tests::
completes, but produces surprising results (with only a pex 2.1.42 -> 2.1.43 change, two other requirements, pystache and types-requests - are removed completely from the lockfile). Afaict there is no script or doc or comment in the generated lockfile that give a hint at what command to run to generate the lockfile.hundreds-father-404
07/20/2021, 5:47 PM./pants --tag=-lockfile_ignore lock ::
enough-analyst-54434
07/20/2021, 5:49 PMhundreds-father-404
07/20/2021, 5:50 PMI'll absolutely never remember that and no-one will remember to hand edit the generated lockfile header. I'll look into something more automated.That work is already underway: https://github.com/pantsbuild/pants/projects/20#card-64990418 Things are awkward in between, but only pantsbuild/pants is experiencing this because lockfiles are all feature gated behind
pants.experimental.python
enough-analyst-54434
07/20/2021, 5:51 PMhundreds-father-404
07/20/2021, 5:54 PMAs to the req nukesbecause you left out
build-support::
enough-analyst-54434
07/20/2021, 5:54 PMwitty-crayon-22786
07/20/2021, 5:58 PMhundreds-father-404
07/20/2021, 5:59 PMthere are changes landing to this code daily, pretty volatile.Indeed. For example, that lockfile generation code is about to see some disruptive changes to handle multiple interpreter constraints
enough-analyst-54434
07/20/2021, 6:00 PMwitty-crayon-22786
07/20/2021, 6:01 PMenough-analyst-54434
07/20/2021, 6:04 PMwitty-crayon-22786
07/20/2021, 7:39 PMenough-analyst-54434
07/29/2021, 5:39 PM./pants run build-support/bin/generate_all_lockfiles.py
working when actually bumping a requirement in 3rdparty/python/requirements.txt. When I bump I get an error like:
Failed to resolve requirements from PEX environment @ /tmp/process-executionSw7SFG/lockfile.pex.
Needed manylinux_2_33_x86_64-cp-37-cp37m compatible dependencies for:
1: ansicolors==1.1.7
But this pex only contains:
ansicolors-1.1.8-py2.py3-none-any.whl
2: pex==2.1.44
But this pex only contains:
pex-2.1.43-py2.py3-none-any.whl
There I bumped Pex from 2.1.43 -> 2.1.44 and later added an artificial dump? of ansicolors from 1.1.8 -> 1.1.7 to sanity check this wasn't a Pex-is-special thing.hundreds-father-404
07/29/2021, 5:54 PM./pants run build-support/bin/generate_all_lockfiles.py
, and hand edits shouldn't be necessary for user_reqs.txt
enough-analyst-54434
07/29/2021, 5:56 PMhundreds-father-404
07/29/2021, 5:57 PMenough-analyst-54434
07/29/2021, 6:00 PMhundreds-father-404
07/29/2021, 6:39 PMenough-analyst-54434
07/29/2021, 6:54 PMhappy-kitchen-89482
07/29/2021, 7:18 PMenough-analyst-54434
07/29/2021, 7:52 PM