Skip to content

Commit

Permalink
fix: Fix check-clojure-tools to work correctly
Browse files Browse the repository at this point in the history
cf. #159
Changed to use `clojure.tools.deps.alpha/user-deps-path`
so it should be the same path with tools.alpha
  • Loading branch information
liquidz committed May 12, 2022
1 parent ac1f009 commit c23871f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/antq/dep/clojure/tool.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
(ns antq.dep.clojure.tool
(:require
[antq.record :as r]
[antq.util.env :as u.env]
[clojure.edn :as edn]
[clojure.java.io :as io]
[clojure.string :as str]))
[clojure.string :as str]
[clojure.tools.deps.alpha :as deps]))

(defn- tools-dir
^java.io.File []
(-> (deps/user-deps-path)
(io/file)
(.getParentFile)
(io/file "tools")))

(defn extract-deps
[file-path tool-edn-content-str]
Expand All @@ -20,7 +27,7 @@

(defn load-deps
([]
(load-deps (io/file (u.env/getenv "HOME") ".clojure" "tools")))
(load-deps (tools-dir)))
([dir-file]
(some->> dir-file
(file-seq)
Expand Down

0 comments on commit c23871f

Please sign in to comment.