proud-dentist-22844
02/07/2024, 11:34 PM--executable flag in pants (an alternative to entry point or console script used when the script to run's file name has characters like - that make it impossible to import from that file.
https://github.com/pantsbuild/pants/pull/20497
However, I'm running into a confusing bit of logic where a target field (or the field's value object) needs to be able to strip the source root. But running rules from targets is wonky.
I'm hoping someone else can take a look and offer an alternative.
๐งตproud-dentist-22844
02/07/2024, 11:35 PMExecutable object which is the value for the PexExecutableField.proud-dentist-22844
02/07/2024, 11:36 PMPexExecutableField creates the Executableproud-dentist-22844
02/07/2024, 11:39 PM@rule that calls Executable.iter_pex_args() .proud-dentist-22844
02/07/2024, 11:41 PMMainSpecification (EntryPoint and ConsoleScript), simply passing the user-provided value as-is to pex is all that is needed. In this case, we need a path to a source file that we expect to be provided by one of the pex_binary dependencies.proud-dentist-22844
02/08/2024, 12:27 AM