From 5b86a6e7c600993cbde06133bf9c7632f2cb3a1f Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Fri, 24 Jun 2022 13:19:15 -0700 Subject: [PATCH] Tentative fix for #23 Propagate `:exclusions` in `lifted-basis`. --- src/org/corfield/build.clj | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/org/corfield/build.clj b/src/org/corfield/build.clj index 2672e6b..e4ab9df 100644 --- a/src/org/corfield/build.clj +++ b/src/org/corfield/build.clj @@ -123,10 +123,9 @@ source-dep? #(not (:mvn/version (get default-libs %))) lifted-deps (reduce-kv (fn [deps lib {:keys [dependents] :as coords}] - (let [version (:mvn/version coords)] - (if (and version (some source-dep? dependents)) - (assoc deps lib {:mvn/version version}) - deps))) + (if (and (contains? coords :mvn/version) (some source-dep? dependents)) + (assoc deps lib (select-keys coords [:mvn/version :exclusions])) + deps)) {} default-libs)] (-> (b/create-basis {:extra {:deps lifted-deps}})