-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yurt blueprint isolation #3
Comments
usually libraries are stateless: i.e. they provide functionality with the state passed to them. As a rule of thumb I would generally try to keep libraries stateless. but of course there are different use cases. I just added building smaller Yurts that would allow your " Let me know if that works for you. |
Thanks - that works well, appreciate the update! One more q: is it possible to combine |
sure, glad it worked for you!
|
No probs - I've sent a PR #4 adding Let me know your thoughts? My code probably isn't the most elegant, but it works as expected! |
I enhanced (yurt/build (yurt/blueprint) {:swap {"neo.conf/config" test-config}
:only ["neo.conf/config" "neo.db/db"]}) so now we can combine them easily in one call to see whether it works for you ( |
* only |
Awesome - this looks a lot cleaner than my solution (I shall close that PR now). |
sure. |
Hi there,
I have run into another edge case that I'd like your guidance with.
I have a situation where I've built
super-cool-library
which uses Yurt to run it's lifecycle.If I create
my-project
, a project with mount components, and addsuper-cool-library
as a dep, I find thatsuper-cool-library
'syurt/blueprint
contains ALL the mount components of the parent project.This means that starting
super-cool-library
within a mount component in the parent project results in ALL the mount components starting. In other words, there is no isolation between a Yurt blueprint of a dependency, and the parent project.Is this by design? If so, is there a way for me to limit a dependancy's lifecycle so that the
yurt/blueprint
fn doesn't pull in components from other namespaces?Let me know if my explanation is gibberish - I can try and create a demo project if need be!
The text was updated successfully, but these errors were encountered: