Fork me on GitHub

Is there any way to use a lein plugin in a tools.deps project? E.g. Codox, lein-ns-dep-graph


@qythium most of lein plugins is just a normal projects. You can include them in your dependencies list and execute their -main function if exists or make your own custom -main. E.g. there is main function to generate codox documentation. It requires some arguments that you have to assemble by yourself but there is nothing impossible. clj -Sdeps '{:deps {codox {:mvn/version "0.10.6"}}}' -e "(do (require 'codox.main) (codox.main/generate-docs))" Oneliner as a prove of concept


And remember, if you're on Clojure 1.10, you can use requiring-resolve so that becomes -e "((requiring-resolve 'codox.main/generate-docs))"


wow, I can't believe that just worked out of the box 😮


fully formatted HTML docs of all the namespaces in a large project with zero setup, how awesome is that


when changing the sha on git deps, I frequently run into a variation of this error:


Cloning: [email protected]:mycomp/mylib.git
Error building classpath. Destination path "mylib" already exists and is not an empty directory
org.eclipse.jgit.api.errors.JGitInternalException: Destination path "mylib" already exists and is not an empty directory


is this a known problem, or should I report it in jira?


I'm not aware of any similar reports in this channel, nor have I encountered it itself.


hmm, I wonder if it could be a false message. I removed the lib from ~/.gitlibs/_repos, and then I see that it errors on auth, as I haven't sun ssh-add after a recent reboot


so maybe that error above also was really caused by an authentication failure?


Maybe. Could be that there's more to be done with catching it correctly too though.

Alex Miller (Clojure team)11:04:42

I haven’t seen anything like this from anyone


ok. I'll see if I can reproduce it and if so, report