target dependsOn
should run chained targets synchronously
#29023
drdreo
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a build chain dependency where build A, needs build B & C. But B must not be built before C is finished, since the output folder is only cleared in one build configuration - C. If the order is not followed, that could lead to a race condition before C completes and C could clean the folder, containing build B (which finished faster).
It would be great if the dependency targets listed in
dependsOn
are not only executed, but also awaited for completion in order.Since this is not a bug, but likely to improve the total execution time, i could imagine a new option on a target,
sync: true
so that all targets listed are executed synchronously.Example
Regardles of the dependency order in target
asdf
, theecho 2
is always done first.I would expect to have the
ping localhost
do its thing (pinging for 4 seconds) and after that is completed, we can start log2 --echo 2
is printed.ping here is used to visualize a delay.
Beta Was this translation helpful? Give feedback.
All reactions