amperity / lein-monolith

Leiningen plugin for working with monorepos.
Other
214 stars 18 forks source link

Don't exit `each` in the no-op case to allow composition #44

Closed aengelberg closed 5 years ago

aengelberg commented 5 years ago

lein monolith each currently exits with 0 if the selectors match zero projects. This terminates the leiningen process even if you try to compose each in a high-level task:

$ lein do monolith each :refresh build install, version
Target selection matched zero subprojects; nothing to do

Instead it now "soft-exits" to allow subsequent tasks.