I have a goal running question. I know you can run...
# general
a
I have a goal running question. I know you can run multiple goals (e.g
pants lint check ::
) and they will execute sequentially, but I'm trying to achieve two things and can't find anything in the documentation to allow it out of the box: 1. Can the above run
check
even if there are
lint
failures? 2. If I want to make
check
run in parallel to
lint
, is my only option to define a custom goal_rule (eg.
lintcheck
with
MultiGet
of the results of both?). I'm guessing there are also problems there around
Console
that both will use at the same time?
h
Alas no, lint failures mean check won’t run in this case. We want to make goals able to run concurrently. This ticket explains the complexities
a
I'm okay with them still being sequential, as long as the failure of one doesn't stop the next one triggering. E.g in a CI environment you would want to see both your lint and check failures so you fix both before pushing, instead of fixing lint, and then realizing you have check failures to fix still edit: on a second though CI is a bad example because you can easily split them there. Running commands locally is a better example since trying to circumvent this conditional execution is less ergonomic there