hundreds-carpet-28072
07/08/2024, 5:09 PMpython_distribution
targets that depend on a specific requirement, but this filter is working differently to how I expect it to.
pants dependees --transitive --filter-target-type=python_distribution //:reqs#numpy
happy-kitchen-89482
07/08/2024, 5:19 PMancient-france-42909
07/08/2024, 5:49 PMancient-france-42909
07/08/2024, 5:50 PMancient-france-42909
07/08/2024, 5:50 PM"$PANTS" dependents --dependents-transitive=true "$@" > "$FULL_TARGETS"
for project in $("$PANTS" --spec-files="$FULL_TARGETS" --filter-target-type=catapult_release peek | jq -r '.[].project' | sort -u); do
So, I guess, it's dependents and dependees.ancient-france-42909
07/08/2024, 5:53 PMhappy-kitchen-89482
07/08/2024, 5:54 PMhappy-kitchen-89482
07/08/2024, 5:54 PM--filter
filters the input targets IIRCancient-france-42909
07/08/2024, 5:54 PMancient-france-42909
07/08/2024, 5:55 PMancient-france-42909
07/08/2024, 5:56 PMancient-france-42909
07/08/2024, 5:57 PMhundreds-carpet-28072
07/08/2024, 6:24 PMancient-france-42909
07/08/2024, 6:25 PMancient-france-42909
07/08/2024, 6:29 PMhundreds-carpet-28072
07/08/2024, 6:45 PMancient-france-42909
07/08/2024, 6:46 PMhundreds-carpet-28072
07/08/2024, 6:48 PMancient-france-42909
07/08/2024, 6:49 PMancient-france-42909
07/08/2024, 6:51 PM"$PANTS" dependents --dependents-transitive=true "$@" > "$FULL_TARGETS"
"$PANTS" --spec-files="$FULL_TARGETS" --filter-target-type=catapult_release peek
Where $FULL_TARGETS
is a temp file. So we have this above:
FULL_TARGETS=$(mktemp)
trap "rm -f $FULL_TARGETS" EXIT
That's just annoyingfierce-truck-19259
07/08/2024, 7:40 PM"$PANTS" dependents --dependents-transitive=true "$@" | xargs "$PANTS" --filter-target-type=catapult_release peek