Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Tentative fix for #23
Browse files Browse the repository at this point in the history
Propagate `:exclusions` in `lifted-basis`.
  • Loading branch information
seancorfield authored Jun 24, 2022
1 parent 686bd3f commit 5b86a6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/org/corfield/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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}})
Expand Down

0 comments on commit 5b86a6e

Please sign in to comment.