cljdoc

https://cljdoc.org/ & https://github.com/cljdoc/cljdoc
Jakub Holý 2021-05-28T13:11:05.027400Z

If I have the app jar, what is the CLI to run the analyzer on that?

martinklepsch 2021-05-28T13:16:44.028200Z

@holyjak There’s a few ways documented here: https://github.com/cljdoc/cljdoc-analyzer#usage:

clojure -m cljdoc-analyzer.main analyze \
  --project io.aviso/pretty --version "0.1.29" \
  --output-filename "io-aviso-pretty-0.1.29.edn"

❤️ 1
martinklepsch 2021-05-30T11:42:45.044500Z

@holyjak did you have success integrating this into your CI btw? would be a nice thing for us to document if it’s not too complicated

Jakub Holý 2021-05-30T14:09:17.044900Z

No, hadn't the time yet. I'll keep you posted.

👍 1
lread 2021-05-28T14:38:13.031Z

Throwing another idea as I think of it: There is also cljdoc ingest which in turn calls cljdoc analyzer… and we have https://github.com/cljdoc/cljdoc/blob/master/doc/running-cljdoc-locally.adoc#run-cljdoc-locally-from-docker… but I am not sure if this would work well from CI.

lread 2021-05-28T14:39:47.031800Z

Using cljdoc analyzer seems like the more direct approach.

martinklepsch 2021-05-28T14:49:58.032400Z

That way we could cover even more stuff

martinklepsch 2021-05-28T22:56:18.034300Z

It would be cool to deploy cljdoc-analyzer (and cljdoc itself) to Clojars. They both use deps.edn …. I was just gonna ask how to do this best but now I’ve actually found this tool which looks like it might be a pretty good solution: https://github.com/applied-science/deps-library#usage

2021-05-28T23:01:45.034600Z

I use deps-deploy

2021-05-28T23:02:27.035Z

Ah, I see deps-library composes deps-deploy with depstar

2021-05-28T23:02:29.035200Z

I approve

seancorfield 2021-05-28T23:35:04.035700Z

It uses a super-old version of depstar — lots of bugs fixed since then.

seancorfield 2021-05-28T23:35:31.036300Z

I would recommend just using depstar and deps-deploy “manually”, i.e., separately, and using up-to-date versions of both.

seancorfield 2021-05-28T23:37:17.037100Z

(the depstar readme has a section that talks about my deployment process which uses aliases for depstar and deps-deploy)

👍 1
martinklepsch 2021-05-28T23:58:28.038200Z

@seancorfield for some reason I really don’t like having the pom.xml in there as a file that is 90% information from elsewhere (i.e. deps from deps.edn)