This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-12
Channels
- # babashka (22)
- # beginners (112)
- # calva (7)
- # cider (2)
- # clj-kondo (43)
- # cljdoc (25)
- # cljsrn (30)
- # clojars (16)
- # clojure (73)
- # clojure-australia (2)
- # clojure-bay-area (8)
- # clojure-europe (16)
- # clojure-finland (1)
- # clojure-italy (2)
- # clojure-nl (7)
- # clojure-uk (9)
- # clojurescript (28)
- # clojureverse-ops (2)
- # conjure (2)
- # css (22)
- # cursive (28)
- # datomic (9)
- # depstar (28)
- # emacs (6)
- # fulcro (39)
- # graalvm (61)
- # honeysql (38)
- # instaparse (3)
- # jobs (1)
- # kaocha (3)
- # malli (7)
- # pathom (83)
- # sql (3)
- # tools-deps (18)
- # vim (2)
- # xtdb (15)
hello, I'm trying to use the exports feature from Kondo, but when Kondo copies the exported file, instead of the file contents I'm seeing a file path there
expected to have on file:
{:lint-as {com.wsscode.pathom3.connect.operation/defmutation clojure.core/defn
com.wsscode.pathom3.connect.operation/defresolver clojure.core/defn
com.wsscode.pathom3.plugin/defplugin clojure.core/def}}
actual config.edn contents (generated by kondo):
/Users/wilkerlucio/.gitlibs/libs/com.wsscode/pathom3/dd81ae8724cf004f4f5e8b54e3e4464158f7d388/resources/clj-kondo.exports/com.wsscode/pathom3/config.edn
this library in case I'm using from deps
pulling from a github depI think this may be a bug related to git deps, because I had used this feature with jar deps and worked fine
@U066U8JQJ Is there anything that should be fixed on the clj-kondo side? Not sure what the problem is
I think this is a bug in clj-kondo, what I did was to lint dependencies, Pathom 3 is part of the deps, I expected kondo to use the resource config and pull in the project, but in this case, instead of having a config.edn
with the Pathom 3 config, the file is there, but the contents is a path to the source (I guess), instead of its contents
like this
I think you can reproduce if you add the Pathom 3 git dep to the project, and ask to lint the deps com.wsscode/pathom3 {:git/url "
sorry, I first was trying to make sure its just not some stupid setup thing I'm making, if you think its a bug I can go and file an issue
I am linting like this:
clj-kondo --lint $(clojure -Spath -Sdeps '{:deps {com.wsscode/pathom3 {:git/url "" :sha "dd81ae8724cf004f4f5e8b54e3e4464158f7d388"}}}')
Should I see something unexpected now?:face_palm:
about the channel, I just confused, was supposed to be in #clj-kondo
by that path you get this? Copied config to .clj-kondo/com.wsscode/pathom3. Consider adding com.wsscode/pathom3 to :config-paths in .clj-kondo/config.edn.
ok, try going into an empty dir, and then:
mkdir .clj-kondo
clj-kondo --lint $(clojure -Spath -Sdeps '{:deps {com.wsscode/pathom3 {:git/url "" :sha "dd81ae8724cf004f4f5e8b54e3e4464158f7d388"}}}') --no-warnings
cat .clj-kondo/com.wsscode/pathom3/config.edn
yeah, I see what you mean. /Users/borkdude/.gitlibs/libs/com.wsscode/pathom3/dd81ae8724cf004f4f5e8b54e3e4464158f7d388/resources/clj-kondo.exports/com.wsscode/pathom3/config.edn
ok, not just here 🙂 will open an issue