-
Notifications
You must be signed in to change notification settings - Fork 34
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
cljx leaking as dependency #47
Comments
I think this is caused by the cljx.plugin/middleware unconditionally adding cljx to the dependencies. As a workaround, you can specify the cljx plugin inside the |
Yeah, @hugoduncan is right. I always put cljx in It's been a long while since I've had my hand in lein pom stuff. What needs to be changed to prevent the dep from being included, regardless of the profile in which the plugin is situated? (Making the dep optional would be an easy fix, but I'd like the pom to be clean in all cases.) |
I think that the |
Currently, Leiningen just unmerges the I can see several options here:
I'm personally inclined toward option 1. It would give people the ability to turn cljx on and off just by toggling the profile, while at the same time providing unsurprising default behaviour when deploying or generating jars. |
The dependency is also required at runtime for the REPL support, etc. |
I've updated the README to demonstrate and advise Happy to take a PR that implements option 1 as described by @weavejester. |
Some profiles for common configuration scenarios would be nice to add too. eg. cljx only source project with cljx sources under |
Use named profiles to prevent cljx dependencies leaking into jar. Fixes lynaghk#47
Another thought: why shouldn't the dependency just be added in a |
I forgot to mention that I posted to the Leiningen mailing list about how best to solve this. @technomancy's response was that there isn't currently a good way of doing this in Leiningen as yet... though it appears as though @hugoduncan has submitted a PR along these lines. |
A fix for this is now on More capable profile/configuration management is an interesting notion, but I'd like to consider that separately, as long as the current proposed fix works. |
The README states:
However, cljx does leak out. For example, the Medley 0.5.0 has a dependency on cljx 0.4.0.
The text was updated successfully, but these errors were encountered: