This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-13
Channels
- # aleph (6)
- # announcements (10)
- # asami (3)
- # babashka (111)
- # babashka-sci-dev (20)
- # beginners (28)
- # calva (28)
- # clj-http (1)
- # clj-kondo (23)
- # cljs-dev (16)
- # cljsrn (23)
- # clojure (116)
- # clojure-czech (3)
- # clojure-europe (33)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (5)
- # clojurescript (41)
- # community-development (2)
- # cursive (5)
- # datahike (4)
- # datomic (13)
- # figwheel-main (3)
- # fulcro (11)
- # google-cloud (1)
- # gratitude (8)
- # hyperfiddle (14)
- # jobs (2)
- # lsp (22)
- # malli (4)
- # off-topic (4)
- # other-languages (4)
- # pathom (13)
- # portal (40)
- # rdf (11)
- # reitit (1)
- # sci (15)
- # shadow-cljs (7)
- # specter (1)
- # sql (6)
- # xtdb (4)
Yes it possible to disable warning on “RELEAZE” version (e.g., https://github.com/clj-kondo/clj-kondo/blob/919478cdfc58b47dd48a7383c9b3a6de2b507b1f/test/clj_kondo/deps_edn_test.clj#L106).. I didn’t find the relevant settings in the default config: https://github.com/clj-kondo/clj-kondo/blob/master/src/clj_kondo/impl/config.clj#L6
The only place I would use "RELEASE"
is in my dot-clojure file for dev tooling -- which clj-kondo isn't going to be checking generally (except when you're editing it -- but not when you're working on actual projects). Actual projects should never use RELEASE. As of Maven 3.5.2 it's deprecated and will likely stop being supported at some point.
It breaks dependency caching in the CLI as well, another reason to avoid it.
And for the sporadic usage, you can use:
{:deps {foo/bar #_:clj-kondo/ignore {:mvn/version "RELEASE"}}}
> It breaks dependency caching in the CLI as well, another reason to avoid it.
I haven’t tested it (and not sure how it is tested). But on the slightest possibility, will “RELEASE” make the path calculation slow, is this what breaks dependency caching in the CLI as well
means?
It doesn't make it slow, as the text is just hashed and that is the cache key. But you won't ever get the newest RELEASE version unless you have a cache miss.
I made a command line tool which can quickly update a certain dependency to the newest, if that's interesting to you: https://github.com/babashka/neil It runs in milliseconds with babashka. There is also the excellent antq tool to update dependencies.
Thanks. I mainly use > There is also the excellent antq tool to update dependencies.
antq
is awesome. We have a daily cron job to provide us a nice report each day of outdated deps in our monorepo. Mostly, we do patch updates as a matter of course every build cycle and often any minor updates too, at least with Clojure libs which are typically really good with backward compatibility... Java libs, not so much.
would it be possible to expose the helper function arity-error
in hooks? I discovered that when I use :analyze-call
to rewrite a custom macro, clj-kondo stops checking arity on the call, so I wrote my own version of arity-error
Just calling reg-finding!
with type :incorrect-arity
does not work I guess? Do you have a github link to that function you want to get in?
I did not know that you could exclude the :msg
in reg-finding!
so that explains it lol
actually, I made a mistake so that's not working as I thought. I can private message you the macro and the hook, if you want
if i use :incorrect-arity
but don't provide a :message
, then the error just says error:
with no message
yeah, this isn't mean to be a bug report, just that if it's easier to expose arity-error
, i would use it lol