Skip to content

Commit c875fc6

Browse files
committed
Respect cider-injected-middleware-version
1 parent f556d30 commit c875fc6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* Also remember: for it to work, on Linux, you'll also have to do something like `sudo apt install openjdk-11-source` (depending on your package manager and JDK of choice).
1717
* [#3145](https://github.com/clojure-emacs/cider/pull/3145): Allow fallback to other `xref` backends if cider-nrepl is not loaded.
1818
* [#3148](https://github.com/clojure-emacs/cider/pull/3148): Fix eval result overlays at point inheriting the faces of following text.
19+
* [#3133](https://github.com/clojure-emacs/cider/issues/3133): Respect `cider-injected-middleware-version`.
1920

2021
## 1.2.0 (2021-12-22)
2122

cider.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,6 @@ plugin should actually be injected. (This is useful primarily for packages
464464
that extend CIDER, not for users. For example, a refactoring package might
465465
want to inject some middleware only when within a project context.)")
466466
(put 'cider-jack-in-lein-plugins 'risky-local-variable t)
467-
(cider-add-to-alist 'cider-jack-in-lein-plugins
468-
"cider/cider-nrepl" cider-injected-middleware-version)
469467

470468
(defvar cider-jack-in-lein-middlewares nil
471469
"List of Leiningen :middleware values to be injected at jack-in.
@@ -492,7 +490,9 @@ where it doesn't make sense."
492490
(eq project-type 'lein))
493491
(append cider-jack-in-lein-plugins
494492
'(("mx.cider/enrich-classpath" "1.8.0")))
495-
cider-jack-in-lein-plugins)))
493+
cider-jack-in-lein-plugins))
494+
(corpus (append corpus
495+
`(("cider/cider-nrepl" ,cider-injected-middleware-version)))))
496496
(thread-last corpus
497497
(seq-filter
498498
(lambda (spec)

0 commit comments

Comments
 (0)