clj-kondo

https://github.com/clj-kondo/clj-kondo
robert-stuttaford 2020-09-17T06:12:57.187200Z

we've hit a snag that i'm not sure how best to solve. we use kondo as a library in our app, using :mvn/version "2020.09.09", and we also have carve in our ~/.clojure/deps.edn. so now, we can't carve our code because of this issue:

Error building classpath. Unable to compare versions for clj-kondo/clj-kondo: {:git/url "<https://github.com/borkdude/clj-kondo>", :sha "f5e6c35ffaae2f5c7945887d5a124872b32db4c3", :deps/manifest :deps, :deps/root "/Users/robert/.gitlibs/libs/clj-kondo/clj-kondo/f5e6c35ffaae2f5c7945887d5a124872b32db4c3"} and {:mvn/version "2020.09.09", :deps/manifest :mvn}

robert-stuttaford 2020-09-17T06:13:24.187800Z

i guess we'd have to switch to a git sha for our dep, and that'd solve it, but it does raise an interesting issue!

borkdude 2020-09-17T06:55:19.188100Z

@robert-stuttaford isn't that what aliases are for?

borkdude 2020-09-17T06:56:04.188600Z

clojure -A:carve ..., clojure -A:clj-kondo ...

borkdude 2020-09-17T07:00:25.189100Z

ah sorry, you are using clj-kondo in your app. hmm. I think it's an interesting point discussing in #tools-deps

1👍
borkdude 2020-09-17T07:11:03.190700Z

as a workaround you might indeed want to use the same git SHA as 2020.09.09

borkdude 2020-09-17T07:11:49.191300Z

I could also make a clojars release of carve if it's really an annoying thing

robert-stuttaford 2020-09-17T07:14:02.191600Z

yes, that's what i did, switched to git sha