Pex has <a >`--validate-entry-point`<https://githu...
# pex
w
Pex has a `--validate-entry-point` option, which isn't exposed via pants. Is there a reason pants wouldn't want to surface that? If not i'll open an issue and have a go at implementing it
f
hey Dave. I've just recently merged a PR that lets you declare arbitrary global args that will be used by all PEX invocations. https://github.com/pantsbuild/pants/pull/21202. This should make it to 2.23, I think.
w
Incredible Alexey 🙌
--exclude
is on my list as well, so this is ideal
f
Give it a try. Keep in mind it's global, so your excludes may potentially interfere with other PEX invocations!
b
The individual targets expose options for adding arbitrary args too, which can be used in conjunction with
__defaults__
to set them. Exposing them directly sounds good too though
b
yes, but I imagine most of the value for
--validate-entry-point
and similar args are for user-controlled pexes, like those ones. (For the global-args option, as we discussed in that PR, setting that in a toml file to have it always apply is likely to break "random" invocations that are using
pex3 ...
subcommands, not the basic
pex ... -o ...
build-a-pex one.)
1
f
Exposing some of the arguments as target fields would make a lot of sense; e.g. we already have https://www.pantsbuild.org/2.21/reference/targets/pex_binary#entry_point so adding
validate_entry_point: bool
would be helpful, I reckon.
👍 2