From 884189a7988cdd53f1e290b52548c7929b71885b Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Fri, 15 Dec 2017 09:14:11 -0800 Subject: [PATCH] Don't fail if bootclasspath deps list isn't found. When this isn't present we should assume no files are on the bootclasspath. Fixes #2369. --- leiningen-core/src/leiningen/core/classpath.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/leiningen-core/src/leiningen/core/classpath.clj b/leiningen-core/src/leiningen/core/classpath.clj index eb7ebd94..f6c1da62 100644 --- a/leiningen-core/src/leiningen/core/classpath.clj +++ b/leiningen-core/src/leiningen/core/classpath.clj @@ -404,8 +404,10 @@ (doseq [[_ {:keys [native-prefix file]}] snap-deps] (extract-native-dep! native-path file native-prefix)))))) -(def ^:private bootclasspath-deps (-> "leiningen/bootclasspath-deps.clj" - io/resource slurp read-string)) +(def ^:private bootclasspath-deps + (if-let [deps-file (io/resource "leiningen/bootclasspath-deps.clj")] + (slurp (read-string deps-file)) + [])) (defn- warn-conflicts "When using the bootclasspath (for boot speed), resources already on the