tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
practicalli-john 2020-06-27T20:33:18.030400Z

I published a page on using the very unofficial tools.deps hot-loading of dependencies. Be aware that this is very unofficial and no guarantee it will be included in anything official. Credit to Sean Corfield for the alias configuration. I've shown an example of using hot loading with the rebel REPL. http://practicalli.github.io/clojure/alternative-tools/clojure-tools/hot-load-dependencies.html Again, this is very unofficial, so use with caution and dont rely on it being available.

2👍
alexmiller 2020-06-27T20:45:29.033100Z

Given that this is an unreleased branch of an alpha lib and we’ve already determined the api is going to change, can you make it real obvious on that page that this is not “official” stuff?

alexmiller 2020-06-27T20:46:27.034600Z

There is a wip add-lib2 branch out there but it is actually a branch off another wip branch (which has now moved forward and not been merged back)

alexmiller 2020-06-27T20:48:04.036100Z

It’s entirely possible for that existing add-lib branch to become broken at any time (as master drifts), and I actually expect that to happen soon

seancorfield 2020-06-27T20:54:21.038800Z

@alexmiller Understood. I rely on it quite a bit but I'm happy to switch to any other working version, if I can just prevail on you to point me at such a thing if the SHA I'm depending on right now breaks (and I'm happy to use Clojure master for dev, if that's what I have to switch to)

seancorfield 2020-06-27T20:55:57.040400Z

^ @jr0cket I would have tried to dissuade you from writing this up, if you had asked me ahead of time. Even tho' it's in my public dot-clojure file and I use it day-in, day-out, I wouldn't want to see that baked into the public documentation base around Clojure...

practicalli-john 2020-06-27T20:58:26.042600Z

I did add a caveat to that effect in the deps.edn file, however, I should have put that same warning on the page too. I will update asap

alexmiller 2020-06-27T21:02:10.043300Z

There may be a period of time where there is no working add-lib branch

seancorfield 2020-06-27T21:03:29.043500Z

I haz a sad 😢

seancorfield 2020-06-27T21:03:46.043700Z

Fair enough. I can survive for a "period of time" without it I guess.

seancorfield 2020-06-27T21:04:41.045600Z

@jr0cket This is why I've held off doing a YouTube video showing how I use add-lib on that t.d.a branch -- I don't think people should be encouraged to use it when it's likely to go away/break/change.

alexmiller 2020-06-27T21:05:06.046400Z

I will try to get it remerged, just won’t be my priority so may take a few days as the tools.build stuff moves forward

1👀
seancorfield 2020-06-27T21:05:24.046600Z

Cool. And I'm happy to test that out too, as you know 🙂

practicalli-john 2020-06-27T21:09:44.048600Z

@alexmiller I've updated the page with a large up front warning. If you prefer I remove the page entirely, I am happy to do so. I appreciate there are other approaches and I should probably work on documentation for them in hindsight, its just someone was asking me how to specifically do this hot reloading.

alexmiller 2020-06-27T21:16:40.049600Z

It’s a public thing, so I don’t care if people are aware of it, just want to be sure it’s experimental nature is clear

1👍
practicalli-john 2020-06-28T12:33:07.057400Z

I've moved the page on add-lib to a reference section of the book, as an alternative and very much experimental approach. Apologies for not thinking about this better.