acceptable-football-32760
03/11/2022, 2:38 PM<http://some.path.to|some.path.to>.pex.binary) under dist/ configuarble to be /-separated instead? The practicality comes from the fact that we share bazel and pants repos in one codebase and it would be nice for use to refer to the results of the different builds using a unified way.
Thank you!fast-nail-55400
03/11/2022, 2:42 PMdist/ have an output_path field to allow you to customize the name of the output.curved-television-6568
03/11/2022, 2:45 PM/ for the default generated output_path value: https://github.com/pantsbuild/pants/blob/79140750fa921bcc1d51722d2c161cc5236911bd/src/python/pants/core/goals/package.py#L63-L76
https://www.pantsbuild.org/docs/reference-pex_binary#codeoutput_pathcodeflat-zoo-31952
03/11/2022, 4:21 PMpackagehundreds-father-404
03/11/2022, 4:30 PMpackage rule (e.g. pex_binary) hardcodes where to output the file, which is usually based on the output_path field
@acceptable-football-32760 one idea is to add an option [package].output_path_default_use_slashes or something like that..I think we'd consider that. Although I'm hesitant because it's relatively niche and we try to think in general about "options fatigue". Wdyt?witty-crayon-22786
03/11/2022, 5:42 PMacceptable-football-32760
03/14/2022, 12:24 PMflat-zoo-31952
03/14/2022, 1:06 PMflat-zoo-31952
03/14/2022, 1:08 PMpants-package () {
./pants $@
for f in dist/*.*; do
if test -d $f; then
mv $f $(echo $f | sed s:\\.:/:g)
fi
done
}