Would it make sense to elide `RequirementsPexReque...
# development
b
Would it make sense to elide
RequirementsPexRequest
references to just use
PexFromTargetsRequest
(and move it's functionality into the rule that resolves the latter). It's strictly a subset (and ends up creating a
PexFromTargetsRequest
with the defaults) and I'm working on a PR which would benefit from this simplification
It looks like the difference in behavior is just for
run_against_entire_lockfile
?
w
as in, replace
RequirementsPexRequest
with a factory function on
PexFromTargetsRequest
? yea, maybe. although doing that as a separate PR might be good, since i think weโ€™ll want to cherrypick 14944 on its own
๐Ÿ‘ 1
b
The logic is really hard to follow without this cleanup. At least IMO ๐Ÿ˜ต
w
it definitely is. that sounds like a good idea.
b
Maybe it's because I just roll my 7 nuerons around in my skull until I get lucky but this PR took me a lot of time to map out. I think because there's 3 main cases, and each main cases has at least 2 subcases it gets really hairy. I hope https://github.com/pantsbuild/pants/pull/14238 will make the pex code much easier to grok
That and maybe some heavy deprecation ๐Ÿ˜‚ y
h
yeah it's super confusing to follow everything, so many abstractions
+1 to dedicated PR
w
yep. PEX and multiple lockfiles both being stable is going to kick off a very lovely deprecation and removal period i think.
b
+1 to dedicated PR
Would y'all raze me at the stake if it's not a separate one? ๐Ÿ‘‰ ๐Ÿ‘ˆ
w
Would yโ€™all raze me at the stake if itโ€™s not a separate one? ๐Ÿ‘‰ ๐Ÿ‘ˆ
iโ€™m fine with that. i guess you already touch all the same files
๐Ÿ˜Œ 1