|
136 | 136 | :removals #{'rewrite-clj 'rewrite-clj/rewrite-clj} |
137 | 137 | :additions [['rewrite-clj/rewrite-clj rewrite-clj-version]]})) |
138 | 138 |
|
139 | | -;; needed by depot patch, we'll see if it still needed after depot fixes its tests |
140 | | -#_(defn- replace-in-file [fname match replacement] |
141 | | - (let [orig-filename (str fname ".orig") |
142 | | - content (slurp fname)] |
143 | | - (fs/copy fname orig-filename) |
144 | | - (status/line :detail "- hacking %s" fname) |
145 | | - (let [new-content (string/replace content match replacement)] |
146 | | - (if (= new-content content) |
147 | | - (throw (ex-info (format "hacking file failed: %s" fname) {})) |
148 | | - (spit fname new-content))))) |
149 | | - |
150 | 139 | (defn- show-patch-diff [{:keys [home-dir]}] |
151 | 140 | (let [{:keys [exit]} (shcmd {:dir home-dir :continue true} |
152 | 141 | "git --no-pager diff --exit-code")] |
|
175 | 164 | (defn clojure-lsp-deps [lib-opts] |
176 | 165 | (cli-deps-tree (update lib-opts :home-dir #(str (fs/file % "lib"))))) |
177 | 166 |
|
178 | | -;; |
179 | | -;; depot |
180 | | -;; |
181 | | -;; We'll see if this custom path is needed after next release of depot that fixes its tests |
182 | | -#_(defn depot-patch [{:keys [home-dir] :as lib}] |
183 | | - (deps-edn-v1-patch lib) |
184 | | - (status/line :detail "=> depot uses but does not require rewrite-clj.node, need to adjust for rewrite-clj v1") |
185 | | - (replace-in-file (str (fs/file home-dir "src/depot/zip.clj")) |
186 | | - "[rewrite-clj.zip :as rzip]" |
187 | | - "[rewrite-clj.zip :as rzip] [rewrite-clj.node]")) |
188 | | - |
189 | 167 | ;; |
190 | 168 | ;; lein ancient |
191 | 169 | ;; |
|
338 | 316 | :test-cmds ["bb test"]} |
339 | 317 | {:name "clojure-mcp" |
340 | 318 | :platforms [:clj] |
341 | | - :version "0.1.6-alpha" |
| 319 | + :version "0.1.7-alpha-pre" |
342 | 320 | :github-release {:repo "bhauman/clojure-mcp" |
343 | 321 | :via :tag |
344 | 322 | :version-prefix "v"} |
345 | 323 | :patch-fn deps-edn-v1-patch |
346 | 324 | :show-deps-fn cli-deps-tree |
347 | 325 | :test-cmds ["clojure -M:test"]} |
348 | | - #_{:name "depot" |
| 326 | + {:name "depot" |
349 | 327 | :platforms [:clj] |
350 | | - :note "Depot tests are currently broken, re-enable when they are fixed" |
351 | | - :version "2.4.0" |
| 328 | + :version "2.4.1" |
352 | 329 | :github-release {:repo "Olical/depot" |
353 | 330 | :via :tag |
354 | 331 | :version-prefix "v"} |
355 | | - :patch-fn depot-patch |
| 332 | + :patch-fn deps-edn-v1-patch |
356 | 333 | :show-deps-fn cli-deps-tree |
357 | | - :test-cmds ["bin/kaocha --reporter documentation"]} |
| 334 | + :test-cmds ["clojure -M:dev:test"]} |
358 | 335 | {:name "kibit" |
359 | 336 | :platforms [:clj] |
360 | 337 | :version "0.1.11" |
|
0 commit comments