Commit 9599297 authored Jun 13, 2024 · 55 / 55 · Verified
1 parent 7fdca13 commit 9599297 Copy full SHA for 9599297
File tree 4 files changed +11
-7
lines changed
4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## master (unreleased)
4
4
5
+ ### Changes
6
+
7
+ * [ #883 ] ( https://github.com/clojure-emacs/cider-nrepl/pull/883 ) : Reduce minimal Clojure requirement to 1.10.0.
8
+
5
9
## Bugs fixed
6
10
7
11
* [ CIDER #3684 ] ( https://github.com/clojure-emacs/cider/issues/3684 ) : Don't apply indentation inference for ` :style/indent nil ` metadata.
Original file line number Diff line number Diff line change 7
7
[leiningen.core.main :as lein]))
8
8
9
9
(def minimum-versions {:lein " 2.8.3"
10
- :clojure " 1.10.3 " })
10
+ :clojure " 1.10.0 " })
11
11
12
12
(defn valid-version? [kind version] (lein/version-satisfies? version (minimum-versions kind)))
13
13
(def valid-lein-version? (partial valid-version? :lein ))
46
46
(when-not lein-version-ok?
47
47
(lein/warn " Warning: cider-nrepl requires Leiningen 2.8.3 or greater." ))
48
48
(when-not clojure-version-ok?
49
- (lein/warn " Warning: cider-nrepl requires Clojure 1.10.3 or greater." ))
49
+ (lein/warn " Warning: cider-nrepl requires Clojure 1.10.0 or greater." ))
50
50
(when clojure-excluded?
51
- (lein/warn " Warning: Clojure is excluded, assuming an appropriate fork (Clojure 1.10.3 or later) is provided." ))
51
+ (lein/warn " Warning: Clojure is excluded, assuming an appropriate fork (Clojure 1.10.0 or later) is provided." ))
52
52
(when-not (and lein-version-ok? clojure-version-ok?)
53
53
(lein/warn " Warning: cider-nrepl will not be included in your project." ))
54
54
Original file line number Diff line number Diff line change 15
15
(is (= expected-output
16
16
(middleware {:dependencies [['org.clojure/clojure]]}))))
17
17
(testing " defined versions also work"
18
- (is (= (update-in expected-output [:dependencies 0 ] conj " 1.10.3 " )
19
- (middleware {:dependencies [['org.clojure/clojure " 1.10.3 " ]]})))))
18
+ (is (= (update-in expected-output [:dependencies 0 ] conj " 1.10.0 " )
19
+ (middleware {:dependencies [['org.clojure/clojure " 1.10.0 " ]]})))))
Original file line number Diff line number Diff line change 17
17
(binding [lein/*info* false ]
18
18
(with-redefs [lein/leiningen-version (constantly (plugin/minimum-versions :lein ))]
19
19
(testing " Valid Lein version; valid Clojure version"
20
- (let [project (plugin/middleware '{:dependencies [[org.clojure/clojure " 1.10.3 " ]]})]
20
+ (let [project (plugin/middleware '{:dependencies [[org.clojure/clojure " 1.10.0 " ]]})]
21
21
(is (contains-cider-nrepl-dep? project))
22
22
(is (contains-cider-nrepl-middleware? project))))
23
23
39
39
40
40
(with-redefs [lein/leiningen-version (constantly " 2.5.1" )]
41
41
(testing " Invalid Lein version; valid Clojure version"
42
- (let [project (plugin/middleware '{:dependencies [[org.clojure/clojure " 1.10.3 " ]]})]
42
+ (let [project (plugin/middleware '{:dependencies [[org.clojure/clojure " 1.10.0 " ]]})]
43
43
(is (not (contains-cider-nrepl-dep? project)))
44
44
(is (not (contains-cider-nrepl-middleware? project)))))
45
45
You can’t perform that action at this time.
0 commit comments