-
Notifications
You must be signed in to change notification settings - Fork 43
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
resolve-in-jar-dep is a wee bit brittle #14
Comments
I'll post a PR with a fix for the assumptions made about the forms in |
ping |
As a sidenote, leiningen 2.4 begins to deal with a similar problem, which supposes a general solution for project map processing that might apply to lein-npm. The newly introduced 'release' task involves reflecting on the contents of project.clj, and Phil H notes that a general 'change' task for reading and rewriting project maps might eventually be useful. If that ever materializes as a robust API in leiningen, it could be reused by plugins that extract or inject values like lein-npm does. So I don't know if transmitting data via the pom file is the best course of action. +1 for this PR. |
@arbscht I may be mis-interpretting you or the linked post to the leiningen mailinglist. But this seems to be referring to leiningen tasks which rewrite Our issue is with reliable reading a project definition of a dependency. This is because I was originally under the impression that just reading pom files would be a significant performance improvement, but I don't think that is the case anymore. |
@RyanMcG You're right, of course. I just mean that working with project.clj and not pom files is likely to be a better long-term direction, as this is where all the action happens in a leiningen context (including unrelated rewrites, eventually). The pom file should probably remain an implementation detail for leiningen itself to manage, even for lein plugins, rather than making it a leaky abstraction. Using leiningen's |
I think this project needs a maintainer (I'm not doing Clojure anymore, so not able to support it). Anyone interested? |
I am. Full disclosure, I might ask for some non-clojure-specific library maintenance help though. I'd be happy to co-maintain with someone else too. We could have a cljs-npm organization or something. |
OK, how about I just transfer it to you, then you're free to create an organisation if more people want to pitch in? |
Excellent, thanks @RyanMcG! (I'm very much interested in this project but cannot help as a maintainer at this time. Happy to contribute and support otherwise.) |
@bodil transfer away! |
Transfer in progress! |
Oh, actually, @RyanMcG, you'll need to delete your fork first, getting "ryanmcg/lein-npm already exists" sort of errors. |
@bodil done! Well, I renamed my current fork at least, but that should fix it. |
Apparently not. "RyanMcG already has a repository in the bodil/lein-npm network" |
OK, deleted. Take 3. Sorry about that. https://github.com/RyanMcG/lein-npm 404s now instead of redirecting |
Seems to have worked. Enjoy the repo. :) |
Ha, thanks. |
Well, I am going to merge in #15 then. |
I think this bug renders lein-npm incompatible with chestnut. |
@olivergeorge can you elaborate? Have you tried current master? |
Hi Ryan Just tried "0.5.0-SNAPSHOT" and that works. Test was:
cheers, Oliver |
OK, so it sounds like I should cut a release. I'll try to do that in the
|
Brilliant, thanks. On 27 December 2014 at 08:39, Ryan McGowan [email protected] wrote:
|
@bodil I'm trying to cut a release but I am getting an "Access denied" error. Can you add me to the lein-npm group on clojars? Thanks 😄 |
Oops, sorry, was sure I already had. |
@bodil that did it! |
Thanks Ryan. Seems like a interesting time for CLJS with JS dependencies. What are you making of the JS build conversations happening at the moment? On 29 December 2014 at 07:58, Ryan McGowan [email protected] wrote:
|
No problem. Honestly, I haven't looked into much. Any chance you can link me that ticket? |
…p is a wee bit brittle"](RyanMcG/lein-npm#14).
I received the following error message when running
lein deps
.defproject
being invoked in it. I've done this before:Of course, this will change result in a list of forms so some searching needs to take place to find the
defproject
usage.2. Here we assume, we've found a totally normal defproject, we call second and name to get a string representing the name of the project. Unfortunately, for a project.clj like reply's this fails and breaks the whole thing.
I am not convinced that pulling node dependencies of maven dependencies is the right thing to do. I'd like to get a better understanding of why this is done. Regardless, I think and ideal solution would put the dependencies in the pom and interpret them from there instead of trying to read
project.clj
.A good, short term solution would be to provide better error handling so that when a
project.clj
is improperly interpreted, it is simply ignored. Another, would be to surface an option which disables gathering node-dependencies on sub projects. I think there are cases where it is undesired.I would be happy to submit a pull-request once we know what might work best!
The text was updated successfully, but these errors were encountered: