hundreds-father-404
08/27/2021, 1:48 AMhundreds-father-404
08/27/2021, 1:49 AM[python-setup.thirdparty_resolves]
default = "3rdparty/default_lockfile.txt"
py2 = "3rdparty/py2_lockfile.txt"
Then targets optionally choose which resolve to use:
pex_binary(..., resolve="py2")
Using the name "resolve" shifts the focus from a file on disk to instead what that lockfile represents, like your "py2" lockfile or "data-science" lockfile
does that sound right @witty-crayon-22786?witty-crayon-22786
08/27/2021, 1:51 AMhundreds-father-404
08/27/2021, 1:52 AM[python-setup].resolves
or [python-setup].thirdparty_resolves
• resolve
field
• I think still ./pants generate-lockfiles
, given that you're not creating any new resolves - you're updating the on-disk file the resolves refer to
• but then it would be ./pants generate-lockfiles --resolves=['black', 'py2']
to only do for certain resolves
thoughts @witty-crayon-22786?witty-crayon-22786
08/27/2021, 2:12 AM