This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-14
Channels
- # announcements (3)
- # babashka (189)
- # beginners (157)
- # calva (5)
- # cider (5)
- # clj-kondo (7)
- # cljdoc (34)
- # clojure (61)
- # clojure-dev (2)
- # clojure-europe (42)
- # clojure-nl (15)
- # clojure-poland (1)
- # clojure-spec (5)
- # clojure-uk (6)
- # clojured (2)
- # clojurescript (31)
- # clojureverse-ops (8)
- # component (2)
- # cursive (41)
- # datomic (15)
- # depstar (44)
- # figwheel-main (9)
- # fulcro (14)
- # holy-lambda (1)
- # inf-clojure (13)
- # introduce-yourself (1)
- # jobs (1)
- # lsp (98)
- # malli (12)
- # off-topic (12)
- # pedestal (1)
- # polylith (3)
- # re-frame (51)
- # reitit (4)
- # releases (1)
- # reveal (5)
- # shadow-cljs (3)
- # tools-deps (56)
- # vim (12)
- # xtdb (36)
I have a project that I’m trying to export a config for but it’s a dev time dependency and as such is in an alias. When I run clj-kondo --copy-configs --dependencies --lint "$(clojure -Spath)"
it doesn’t import the configs. Only if I place the dependency in the main dependency list does it import. Is there a way to choose aliases to find imports in?
I’ve worked around this by piggybacking on https://github.com/clj-kondo/config/blob/master/src/clj_kondo/config.clj#L21
There is not a way to get alias information from a dependency at the moment.
You mean an extra dependency in an alias? If so yeah, that’s what I hit. But have hacked around it by using the clj-kondo/config project and it works (for how long who can say 😄 )
Well if you just wanted to get the path with an alias attached you could just run this:
clj-kondo --copy-configs --dependencies --lint "$(clojure -A:some-alias:other-alias -Spath)"
I was assuming you wanted an alias from inside one of your dependencies.