-
Notifications
You must be signed in to change notification settings - Fork 20
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
Affect lein deps :tree #30
Comments
That would be nice, but it might be a bridge too far, mainly because I'm not sure it'd be worth the effort of making it work. What is your usecase, given that you can already do |
Perhaps one interesting use case would be a fairly complex project with several profiles (and ultimately potentially different aliases in them). I don't know if this is possible, but something like
might help, as a convenience, in sorting out what dependencies are being pulled in via that profile's |
I suppose a bigger problem here is that git deps and |
Hey @mfikes Yes my feeling was the same. I think before we look at this we really need to understand exactly what semantics we're shooting for, i.e. whether deps are 100% from I think at the moment we replace the whole If we're aiming for a hytbird model where some deps can be included from leiningen then I can see why such a tool would be useful for debugging. Personally I'd rather avoid the hybrid model, though it might be partly outside of our control, and I'm not entirely sure it's not possible for this to happen yet. If deps are 100% from |
A related aspect: If you do Perhaps a consequence of this is that it would affect consumers of such a JAR, producing a different maven dependency resolution, affecting exclusions, etc. |
Haha, yes well spotted! 👀 This is currently expected behaviour, due to the way we do things; though I must confess I hadn't thought about the case of downstream deps. In one sense I like our current approach which is that assuming you're building an application (i.e. there's noone else downstream of you) I think it will guarantee resolution is identical to what In the case of using a library though, yes, this approach may lead to different override behaviour because our transitive deps have been lifted closer to the root of the tree. I vaguelly remember AlexMiller talking about how If resolution is the same then we can just export the direct dependencies, if they're different then perhaps we want different modes of resolution e.g. |
Flattening deps is a problem for me. I was using lein-tools-deps to build library jars for deps-managed projects, and flattening really messes up the deps tree and makes exclusions and managed-deps useless. Unfortunately I don't know any library-jar packaging and deployment solution for deps.edn. lein-tools-deps came the closest (use lein just for the lein build and deploy to a private repo). Everything else is concerned with application jars or uberjars. What the heck do people use? |
This thought occurred to me. I don't know how lein internals so I'm not sure if this is implementable, but I think what I want in effect is for all deps (the flattened full list) to be added to lein's |
@favila: only just noticed your comment here about using I've created a new issue #91 to track this. |
It would be nice if
lein deps :tree
were updated to show some of the stuff that you can get fromclojure -Stree
, in particular if you have a git dep, the former won't show it, but the latter will.The text was updated successfully, but these errors were encountered: