-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix repl #6
Fix repl #6
Conversation
flatten | ||
distinct | ||
(remove nil?) | ||
(apply merge-with concat)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like some suggestion how to make this more concise if possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe
(defn get-upstream-deps []
"The way Clojurescript handles this does not work when
using classloaders in the fancy ways we do."
(->> (pod/classloader-resources "deps.cljs")
(keep second)
(mapcat identity)
(map (comp read-string slurp))
(apply merge-with concat)))
I didn't thoroughly test, but keep
is maybe useful here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice didn't know about keep
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alandipert that seems to work :)
@micha can we merge & deploy this please? |
Just deployed 0.1.9 also 🍻 |
🍻 👏 |
I think this relies on boot-clj/boot-cljs#50 but I'm not entirely sure.