To repro:
- Write a deps.edn file with a dependency
- Run clj (downloads deps, caches classpath, starts repl)
- rm -rf ~/.m2/repository//
- Run clj (uses cached classpath)
If you delete the Clojure version itself, then you will get an error that clojure.main is missing. If you delete a dependency, your repl will start but you will be missing the expected dependency.
The installation script could potentially detect this by checking the components of the classpath to see if each jar file exists. Not sure if that's worth doing or not.