mage icon indicating copy to clipboard operation
mage copied to clipboard

Fix dependency error propagation by replaying the panic

Open a-palchikov opened this issue 4 years ago • 2 comments

Persist the panic that a dependency had failed with and replay it each time (*onceFun).run is invoked.

I took the liberty of restructuring runDeps to be more idiomatic by using channels but let me know if that's beyond the scope.

Fixes https://github.com/magefile/mage/issues/371.

a-palchikov avatar Sep 27 '21 21:09 a-palchikov

I've been hit with this issue a couple of times, @natefinch do you think it need more work before being merged in?

jippi avatar Apr 20 '22 09:04 jippi

Let me look at this tonight. I'll make time for it. Sorry for the delay

natefinch avatar Apr 20 '22 16:04 natefinch