Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
[Fix #1] Read all relevant deps.edn
Browse files Browse the repository at this point in the history
  • Loading branch information
slipset committed Nov 1, 2018
1 parent f620128 commit d4c9bb7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions deps.edn
@@ -1,5 +1,6 @@
{:paths ["src" "resources"]
:deps {org.clojure/clojure {:mvn/version "RELEASE"}
org.clojure/tools.deps.alpha {:mvn/version "RELEASE"}
ancient-clj {:mvn/version "RELEASE"}}
:aliases
{:test {:extra-paths ["test"]
Expand Down
10 changes: 7 additions & 3 deletions src/deps_ancient/deps_ancient.clj
@@ -1,9 +1,13 @@
(ns deps-ancient.deps-ancient
(:require [ancient-clj.core :as ancient]
[clojure.edn :as edn]))
[clojure.edn :as edn]
[clojure.tools.deps.alpha.reader :as reader]
[clojure.string :as str]))

(defn deps-edn []
(edn/read-string (slurp "deps.edn")))
(let [config-files (:config-files (reader/clojure-env))]
(println "Checking" (str/join ", " config-files))
(reader/read-deps config-files)))

(defn deps [deps-edn]
(->> deps-edn
Expand Down Expand Up @@ -42,7 +46,7 @@

(comment
(def deps (deps (deps-edn)))

deps

(ancient/artifact-outdated? "ancient-clj")

Expand Down

0 comments on commit d4c9bb7

Please sign in to comment.