Fork me on GitHub
#cljdoc
<
2021-05-28
>
Jakub Holý (HolyJak)13:05:05

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

martinklepsch13:05:44

@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"

❤️ 3
martinklepsch11:05:45

@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ý (HolyJak)14:05:17

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

👍 3
lread14:05:13

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.

martinklepsch14:05:58

That way we could cover even more stuff

lread14:05:47

Using cljdoc analyzer seems like the more direct approach.

martinklepsch22:05:18

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

Joshua Suskalo23:05:45

I use deps-deploy

Joshua Suskalo23:05:27

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

seancorfield23:05:04

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

seancorfield23:05:31

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

seancorfield23:05:17

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

👍 3
martinklepsch23:05:28

@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)