Fork me on GitHub
#tools-deps
<
2023-03-02
>
greg09:03:07

clj by default loads aliases from $HOME/.clojure/deps.edn. Is there a way to extend the list of deps.edn loaded by the clj tool?

greg09:03:07

E.g. I have project specific aliases that I don't want in my $HOME/.clojure/deps.edn and I don't want it in the project deps.edn

borkdude11:03:27

Additionally, you can use -Sdeps to provide an extra map with aliases

👍 2
teodorlu15:03:21

Hi! I'm relatively new to library development, and want to make a library and an app that uses that library. I thought I'd use deps.edn and :local/root to develop the library and the app that uses the library locally. When I'm working locally with my REPL, is it possible to have a repl in my app that picks up changes in my library source code? How does that work? Is your workflow similar to this when you are developing a library? Specifically, I'm using Doom Emacs and CIDER, but I assume the REPL question is somewhat independent of editor. Thanks!

Alex Miller (Clojure team)15:03:08

depends what exactly you mean by "picks up changes". nothing will automatically change your running Clojure to reflect changes in the library code, but you can (via several means) reload those namespaces to have those changes take effect (without restarting your repl)

teodorlu15:03:45

Right -- so manually running a require reload like this

(comment
  (require '[teodorlu.some-lib] :reload))
could suffice?

teodorlu15:03:08

Thanks! Then I'll start with that 🙂

borkdude15:03:51

Either :reload or just re-evaluate those library sources in your REPL from your favorite editor

👍 2