Fork me on GitHub
#clj-kondo
<
2020-09-17
>
robert-stuttaford06:09:57

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 "", :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-stuttaford06:09:24

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!

borkdude06:09:19

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

borkdude06:09:04

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

borkdude07:09:25

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

👍 3
borkdude07:09:03

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

borkdude07:09:49

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

robert-stuttaford07:09:02

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