aroemers / mount-lite

mount, but different and light
https://cljdoc.org/d/functionalbytes/mount-lite/
Eclipse Public License 1.0
102 stars 8 forks source link

Order transitive dependencies #21

Open robhanlon22 opened 4 years ago

robhanlon22 commented 4 years ago

Currently, transitive dependencies are being started in the order they were loaded, not in dependency order. This can cause issues in situations where new states which are needed for substitutes are loaded much later than the original state that is being overridden to depend on those new states.

An example of this is in a test environment where you may have configuration overrides that you wouldn't define in your production overrides that are loaded from dev-only code. Without this change, the new test that was written would fail because the newly added dependency was not loaded first.

I had to do a bit of a hack to remove a state defined by defstate-let me know if there is a better way of doing this.

dparis commented 4 years ago

👍 for consistent ordering!

aroemers commented 1 year ago

@robhanlon22, are you still interested in updating this PR?