integrant

Aleks 2022-10-06T12:13:15.792169Z

Hello! There is (repl/disable-reload! (find-ns 'integrant.core)) here https://github.com/weavejester/integrant-repl/blob/master/src/integrant/repl.clj#L6. Can someone explain why is it needed? If I use Integrant as a dependency, I cannot change its files, thus it won’t be reloaded, am I wrong?

Aleks 2022-10-12T09:24:26.813259Z

To find files to reload it uses classpath-directories or dirs you set manually with set-refresh-dirs. So I have no idea how it might be able to reload code a dependent library.

walterl 2022-10-06T12:44:43.697909Z

git archeology ftw ⛏️ https://github.com/weavejester/integrant-repl/pull/7

Aleks 2022-10-06T14:25:11.045579Z

Thanks, but I still don’t understand when integrant.core reloading may happen. It’s a dependency so you cannot change it, thus tools.namespace will never reload it.

weavejester 2022-10-06T16:06:38.211389Z

I believe that when you run refresh for the first time, it reloads everything as it doesn't know what, if anything, has been loaded. After the first refresh, it keeps track of what files have changed.

imre 2022-10-19T20:03:26.076929Z

if you use integrant as a git dep, it will be in your classpath-directories