This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-16
Channels
- # announcements (3)
- # babashka (48)
- # beginners (35)
- # calva (3)
- # chlorine-clover (5)
- # clj-kondo (9)
- # cljdoc (20)
- # cljsrn (1)
- # clojure (55)
- # clojure-europe (33)
- # clojure-nl (3)
- # clojure-norway (6)
- # clojure-spec (7)
- # clojure-uk (27)
- # clojurescript (95)
- # closh (1)
- # conjure (1)
- # cursive (16)
- # datomic (30)
- # emacs (7)
- # honeysql (1)
- # hugsql (2)
- # introduce-yourself (2)
- # jobs (1)
- # lsp (30)
- # malli (22)
- # nbb (11)
- # news-and-articles (1)
- # off-topic (8)
- # pathom (21)
- # polylith (39)
- # portal (4)
- # practicalli (4)
- # protojure (1)
- # re-frame (14)
- # releases (1)
- # restql (1)
- # reveal (24)
- # sci (1)
- # sql (21)
- # vim (11)
- # xtdb (33)
git clone
cd clj-kondo
script/diff
returns an expected:
Linting and writing output to /tmp/clj-kondo-diff/branch.txt
Cloning into 'clj-kondo'...
remote: Enumerating objects: 12371, done.
remote: Counting objects: 100% (1395/1395), done.
remote: Compressing objects: 100% (598/598), done.
remote: Total 12371 (delta 761), reused 1172 (delta 692), pack-reused 10976
Receiving objects: 100% (12371/12371), 11.82 MiB | 1.93 MiB/s, done.
Resolving deltas: 100% (7142/7142), done.
Linting and writing output to /tmp/clj-kondo-diff/master.txt
2558c2558
< linting took 11494ms, errors: 264, warnings: 2293
---
> linting took 11589ms, errors: 264, warnings: 2293
but if I run script/diff
a second time I get:
Linting and writing output to /tmp/clj-kondo-diff/branch.txt
Cloning into 'clj-kondo'...
remote: Enumerating objects: 12371, done.
remote: Counting objects: 100% (1395/1395), done.
remote: Compressing objects: 100% (598/598), done.
remote: Total 12371 (delta 761), reused 1172 (delta 692), pack-reused 10976
Receiving objects: 100% (12371/12371), 11.82 MiB | 3.03 MiB/s, done.
Resolving deltas: 100% (7142/7142), done.
Linting and writing output to /tmp/clj-kondo-diff/master.txt
1923c1923
< clojure/tools/reader.clj:18:53: warning: use alias or :refer [char desugar-meta ex-info? namespace-keys numeric? reader-conditional second' tagged-literal whitespace?]
---
> clojure/tools/reader.clj:18:53: warning: use alias or :refer [char desugar-meta ex-info? namespace-keys numeric? second' whitespace?]
2173c2173
< inlined/clj_kondo/impl/toolsreader/v1v2v2/clojure/tools/reader.clj:16:87: warning: use alias or :refer [char desugar-meta ex-info? namespace-keys numeric? reader-conditional second' tagged-literal whitespace?]
---
> inlined/clj_kondo/impl/toolsreader/v1v2v2/clojure/tools/reader.clj:16:87: warning: use alias or :refer [char desugar-meta ex-info? namespace-keys numeric? second' whitespace?]
2558c2558
< linting took 11885ms, errors: 264, warnings: 2293
---
> linting took 11884ms, errors: 264, warnings: 2293
If I rm -rf .clj-kondo/.cache
and re-run script/diff
all is good again, but subsequent runs of script/diff
will again return the unexpected result.Thanks, would it make sense to rm -rf .clj-kondo/.cache
in script/diff
to avoid confusing contributors? Or maybe that’s not a good thing to do. Dunno.