Fork me on GitHub
#babashka
<
2022-05-31
>
dabrazhe09:05:26

How can I add https://github.com/babashka/tools.namespace to the :deps section in bb.edn? Having issues with the syntax

borkdude09:05:17

{:deps {org.clojure/tools.namespace {:git/url ""
                                                  :git/sha "3625153ee66dfcec2ba600851b5b2cbdab8fae6c"}}

dabrazhe09:05:20

Thanks! At what point the :deps are resolved in bb.edn when using the Repl? At the Repl start?

borkdude09:05:40

On whatever command you execute

dabrazhe20:05:39

Perhaps I require it wrong.

(require '[clojure.tools.namespace.repl :refer [refresh]])
Error
; : Could not resolve symbol: clojure.core/*loaded-libs* bbaws /Users/macpro/.gitlibs/libs/org.clojure/tools.namespace/3625153ee66dfcec2ba600851b5b2cbdab8fae6c/src/main/clojure/clojure/tools/namespace/reload.

borkdude21:05:08

Ah, @U96LS78UV that part (`tools.namespace.repl`) of tools namespace I haven't considered yet. I only used tools namespace to scan namespaces for testing so you could use it with the cognitect test runner

dabrazhe09:06:38

Ah, I understand, no worries. Perhaps there's another way to improve my workflow. Will rephrase