glamorous-nail-59544
01/12/2023, 2:52 PMrun
goal fail when the applied filters return nothing?
I am trying to run DB migrations if there is any change detected in my microservice migrations, but if I use the --changed-since
flag and nothing is detected, it fails my ci.
I also tried the list
goal and piped the result into a run, same thing.
Any ideas?glamorous-nail-59544
01/12/2023, 3:10 PMfor line in $(./pants --tag=migration --changed-since=tags/${{steps.get-latest-tag.outputs.tag}} --changed-dependees=transitive list); do
echo "Running migration for $line"
./pants run $line -- migrate app
done
enough-analyst-54434
01/12/2023, 4:06 PM./pants <verb>
when no targets / changes apply to that verb? Or do you error. We are currently erroring, assuming ./pants run
is a signal you want something to run; so the absence of a run must be an error. This choice is highly debatable of course.enough-analyst-54434
01/12/2023, 4:07 PMglamorous-nail-59544
01/12/2023, 4:11 PMenough-analyst-54434
01/12/2023, 4:22 PMglamorous-nail-59544
01/12/2023, 5:26 PM