silly-waitress-33423
11/08/2024, 7:33 PMrun
it will still return an exit code of 0? Also, thank you in advance…folks in this slack are super helpful and I’ve been learning a lot and making tons of progresshappy-kitchen-89482
11/09/2024, 5:29 AMsilly-waitress-33423
11/09/2024, 5:53 PMpants --changed-since=origin/main --changed-dependents=transitive --filter-tag-regex='^my-tag$' run
So I’ve currently implemented:
TARGETS=$(pants --changed-since=origin/main --changed-dependents=transitive --filter-tag-regex='^my-tag$' list)
if [[ -z "$TARGETS" ]]; then
echo "no targets to run on"
else
pants --spec-files=<(echo $TARGETS) run
fi
I’d love if I could do this because then it could just be a single line that I could even add to the cli helpers for everyone to do on their own machine (and on CLI)
pants --NEW_IDEA_ALLOW_ERRORS=NoTargetFound --changed-since=origin/main --changed-dependents=transitive --filter-tag-regex='^my-tag$' run
happy-kitchen-89482
11/09/2024, 7:22 PMrun
a single target per Pants invocationhappy-kitchen-89482
11/09/2024, 7:23 PMhappy-kitchen-89482
11/09/2024, 7:23 PMThe `run` goal only works with one valid target, but was given multiple valid targets
happy-kitchen-89482
11/09/2024, 7:23 PMsilly-waitress-33423
11/11/2024, 3:49 PM