scripts don't detect or warn if file referred to in cached classpath has been deleted

Description

To repro:

  • Write a deps.edn file with a dependency

  • Run clj (downloads deps, caches classpath, starts repl)

  • rm -rf ~/.m2/repository/<group>/<artifact>

  • 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.

Environment

None

Assignee

Alex Miller

Reporter

Alex Miller

Labels

None

Approval

None

Patch

None

Priority

Major