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
@wilkerlucio 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 "<https://github.com/wilkerlucio/pathom3>" :sha "dd81ae8724cf004f4f5e8b54e3e4464158f7d388"}
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 will try
Why are you posting this in #cljdoc btw?
I am linting like this:
clj-kondo --lint $(clojure -Spath -Sdeps '{:deps {com.wsscode/pathom3 {:git/url "<https://github.com/wilkerlucio/pathom3>" :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.
np, let's continue ;)
Unfortunately not
Feel free to post an issue about this and I will look into it
ok, try going into an empty dir, and then:
mkdir .clj-kondo
clj-kondo --lint $(clojure -Spath -Sdeps '{:deps {com.wsscode/pathom3 {:git/url "<https://github.com/wilkerlucio/pathom3>" :sha "dd81ae8724cf004f4f5e8b54e3e4464158f7d388"}}}') --no-warnings
cat .clj-kondo/com.wsscode/pathom3/config.edn
oh yes ok
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
Thanks!
Fixed on master, I think
I'll add some tests around this tomorrow