fresh-cat-90827
10/28/2021, 11:28 AMpex_binary
targets in a particular project within a Pants monorepo than doing:
./pants filter --target-type=pex_binary --filter-address-regex="myproject" :: | xargs ./pants package
?curved-television-6568
10/28/2021, 11:38 AM[cli.alias]
myproject-binaries = "--target-type=pex_binary --filter-address-regex=myproject ::"
Then:
./pants filter myproject-binaries | xargs ./pants package
polite-garden-50641
10/28/2021, 11:56 AMfresh-cat-90827
10/28/2021, 12:02 PMpolite-garden-50641
10/28/2021, 12:11 PMenough-analyst-54434
10/28/2021, 3:05 PM./pants package myproject::
enough-analyst-54434
10/28/2021, 3:06 PMpython_distribution
targets, but maybe that's OK for you use case?fresh-cat-90827
10/28/2021, 3:07 PMpython_distribution
as well, indeed. Thanks @enough-analyst-54434enough-analyst-54434
10/28/2021, 3:08 PM:
Is all targets in this dir, ::
is all targets recursively under this dir.curved-television-6568
10/28/2021, 3:11 PMfresh-cat-90827
10/28/2021, 3:13 PMThe magic is just globs.Âaha, I was using Is all targets in this dir,Â:
 is all targets recursively under this dir.::
./pants package ::
all the time, but it didn’t occur to me to put a directory name in front of ::
cheersenough-analyst-54434
10/28/2021, 3:35 PM./pants package 'myproject/***'*
(let Pants expand file globs) or ./pants package myproject/**
(if your shell supports it).