Fork me on GitHub
#leiningen
<
2020-11-24
>
jumar15:11:43

You can lein install it into your local maven repo. Or you can use "checkouts": https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md#checkout-dependencies

noisesmith16:11:27

@st3fan if you use lein install to put a snapshot version of the lib into your maven cache, you can edit the library code and then load the file / form in your REPL

noisesmith16:11:56

most editor integrations make this trivial, but even with a naked REPL load-file is all you need

noisesmith16:11:17

so the workflow becomes: 1. lein install to put the current snapshot state of project a into the cache 2. lein repl to run project b using that lib 3. load-file or your editor integrations to the project b repl, to load redefinitions from project a on the fly

st3fan18:11:47

> Sometimes it is necessary to develop two or more projects in parallel

st3fan18:11:09

Thanks both! I missed that documentation about Checkout Dependencies ... looks like what I need!

noisesmith18:11:41

I find the added complexity / brittleness of checkouts to be worse than the default of not using them, but cheers, whatever works

noisesmith18:11:25

to be clear, those steps are how I develop two or more projects in parallel (I should have specified which project I did each step in...) (edited above to clafiry)

st3fan18:11:36

I'll find out - otherwise I will go the load-file route

noisesmith18:11:21

I can't tell you the exact way to do it without knowing your editor, but usually you don't use load-file directly, you just press some key in your editor with the file open

st3fan18:11:20

Yeah now that I think of this - that totally makes sense