Is there any way to pass through any arguments to ...
# general
g
Is there any way to pass through any arguments to pex from pants? Pex controls some network parameters like
timeout
and
retries
that would be useful to control.
Happy to contribute if necessary, either in pex or pants where it makes most sense to add this. E.g. in pex we can add the env options to enable this for the timeout and retries, or in pants some option to pass this. Since pex releases come faster probably it’s preferable for us to go the pex route.
h
There's no general way, some Pants options are plumbed through, others not. You can see the pex command line construction here
I don't know if we want to support any general arg, since they might collide with ones Pants must set.
OTOH, maybe we don't need to babysit users to that degree...
Hmm, pex doesn't fail if you specify the same arg twice, so letting users specify any arg would potentially stomp on Pants-provided values or otherwise cause confusion.
So maybe it's better to allowlist specific extra options, by name (such as the network ones you mention) rather than doing this generically
c
The "only these options are allowed" pattern is used by the helm backend