Update REPL loading code to add-lib3 from t.d.a.

This commit is contained in:
Sean Corfield 2020-10-25 15:03:31 -07:00
parent 347ad43f0b
commit 5e3657c25f
2 changed files with 4 additions and 5 deletions

View file

@ -43,7 +43,7 @@
:main-opts ["-m" "cognitect.test-runner" :main-opts ["-m" "cognitect.test-runner"
"-d" "test"]} "-d" "test"]}
:jar :jar
{:extra-deps {seancorfield/depstar {:mvn/version "1.1.128"}} {:extra-deps {seancorfield/depstar {:mvn/version "1.1.132"}}
:main-opts ["-m" "hf.depstar.jar" "next-jdbc.jar"]} :main-opts ["-m" "hf.depstar.jar" "next-jdbc.jar"]}
:deploy :deploy
{:extra-deps {slipset/deps-deploy {:mvn/version "0.1.1"}} {:extra-deps {slipset/deps-deploy {:mvn/version "0.1.1"}}

View file

@ -228,10 +228,10 @@ CREATE PROCEDURE FRUITP" (cond (hsqldb?) "() READS SQL DATA DYNAMIC RESULT SETS
(comment (comment
;; this is a convenience to bring next.jdbc's test dependencies ;; this is a convenience to bring next.jdbc's test dependencies
;; into any REPL that has the add-lib branch of tools.deps.alpha ;; into any REPL that has the add-lib3 branch of tools.deps.alpha
;; which allows me to develop and test next.jdbc inside my work's ;; which allows me to develop and test next.jdbc inside my work's
;; "everything" REBL environment ;; "everything" REBL environment
(require '[clojure.tools.deps.alpha.repl :refer [add-lib]] (require '[clojure.tools.deps.alpha.repl :refer [add-libs]]
'[clojure.java.io :as io] '[clojure.java.io :as io]
'[clojure.edn :as edn]) '[clojure.edn :as edn])
(def repo-path "/Developer/workspace/next.jdbc") (def repo-path "/Developer/workspace/next.jdbc")
@ -241,8 +241,7 @@ CREATE PROCEDURE FRUITP" (cond (hsqldb?) "() READS SQL DATA DYNAMIC RESULT SETS
:aliases :aliases
:test :test
:extra-deps)) :extra-deps))
(doseq [[coord version] test-deps] (add-libs test-deps)
(add-lib coord version))
;; now you can load this file... and then you can load other test ;; now you can load this file... and then you can load other test
;; files and run their tests as needed... which will leave (ds) ;; files and run their tests as needed... which will leave (ds)
;; set to the embedded PostgreSQL datasource -- reset it with this: ;; set to the embedded PostgreSQL datasource -- reset it with this: