You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the task to be aborted and something-else not to run. Instead the error return code is ignored that something-else is run.
However, it is easy to work around. Given we are in rake we can use sh.
sh"false"sh"something-else"
Given that sh is built-in, perhaps the best solution is to remove/deprecate run(:local) in favor of sh. Otherwise, perhaps it could be implemented in terms of sh instead of system.
The text was updated successfully, but these errors were encountered:
The deploy commands are all chained together with && as you can see when using mina deploy --simulate. But local commands are just placed inline.
My temporary fix is to do
run:localdocommand"something || exit 1"command"something else && another || exit 1"end
But that's not very nice to look at, or have to remember. And if you try to use in_path then it will still bypass any failures because in_path wraps commands into a subprocess:
The local run environment does not check the results of its tasks.
I would expect the task to be aborted and
something-else
not to run. Instead the error return code is ignored thatsomething-else
is run.However, it is easy to work around. Given we are in rake we can use
sh
.Given that
sh
is built-in, perhaps the best solution is to remove/deprecaterun(:local)
in favor ofsh
. Otherwise, perhaps it could be implemented in terms ofsh
instead ofsystem
.The text was updated successfully, but these errors were encountered: