Fork me on GitHub
#clj-kondo
<
2022-09-23
>
opqdonut11:09:49

I see there's a nice helix clj-kondo config at https://github.com/lilactown/helix/tree/master/resources/clj-kondo.exports/lilactown/helix According to git tags that file is included in 0.1.7. However clj-kondo --dependencies --copy-configs doesn't find it for me. Does it work for anyone else? I guess I can always manually import it.

opqdonut11:09:27

I do have a .clj-kondo dir and clj-kondo has managed to put other configs there.

borkdude11:09:40

Can you check if the dependency contains those files?

opqdonut11:09:16

% zipinfo ~/.m2/repository/lilactown/helix/0.1.7/helix-0.1.7.jar| grep kondo
-rw----     2.0 fat        0 bl defN 22-Mar-29 21:15 clj-kondo.exports/
-rw----     2.0 fat        0 bl defN 22-Mar-29 21:15 clj-kondo.exports/lilactown/
-rw----     2.0 fat        0 bl defN 22-Jul-29 17:12 clj-kondo.exports/lilactown/helix/
-rw----     2.0 fat    10661 bl defN 22-Jul-29 17:12 clj-kondo.exports/lilactown/helix/config.edn
-rw----     2.0 fat        0 bl defN 22-May-12 20:52 clj-kondo.exports/lilactown/helix/clj_kondo/
-rw----     2.0 fat        0 bl defN 22-Aug-11 17:28 clj-kondo.exports/lilactown/helix/clj_kondo/lilactown/
-rw----     2.0 fat     3566 bl defN 22-Aug-11 17:28 clj-kondo.exports/lilactown/helix/clj_kondo/lilactown/helix.clj

borkdude11:09:32

that looks ok

opqdonut11:09:59

I even tried adding the helix-dep to my main :deps, but it didn't help. Previously it was only under my :shadow-cljs alias.

borkdude11:09:27

you need to add --lint $(clojure -Spath)

borkdude11:09:40

did you have that? this wasn't clear from your OP

opqdonut11:09:40

now it worked

opqdonut11:09:44

% clj -M:clj-kondo --dependencies --copy-configs --lint $(clojure -Spath)
Configs copied:
- .clj-kondo/com.github.seancorfield/next.jdbc
- .clj-kondo/lilactown/helix
- .clj-kondo/metosin/malli

opqdonut11:09:02

I thought --dependencies --copy-configs would do the right thing on its own. I guess I should reread the docs.

borkdude11:09:29

ah yes, you always need to specify the classpath to clj-kondo explicitly, there is absolutely no magic with deps.edn detection etc :)

opqdonut11:09:53

I get it now, yeah, kondo doesn't read my deps.edn

opqdonut11:09:07

That makes perfect sense