Skip to content
Browse files

build-deps resolves without :dev or :user profiles

  • Loading branch information...
1 parent 03a863f commit cd5174b901da0167bd8f56f2e4d3afaab346e64f @Chouser Chouser committed Dec 17, 2013
Showing with 14 additions and 13 deletions.
  1. +14 −13 src/leiningen/voom.clj
View
27 src/leiningen/voom.clj
@@ -293,19 +293,20 @@
(close [])))
(defn try-once-resolve-voom-version [project]
- (try
- (with-log-level Level/OFF
- #(binding [*err* null-writer]
- (leiningen.core.classpath/resolve-dependencies :dependencies project)))
- :ok
- (catch Exception e
- ;; lein resolve-dependencies wraps a
- ;; DependencyResolutionException in an ex-info, so if we want
- ;; the real cause of failure we have to dig for it:
- (if-let [arts (seq (missing-artifacts-from-exception e))]
- (doseq [art arts]
- (resolve-artifact e art))
- (throw e)))))
+ (let [non-dev-proj (project/set-profiles project [] [:dev :user])]
+ (try
+ (with-log-level Level/OFF
+ #(binding [*err* null-writer]
+ (leiningen.core.classpath/resolve-dependencies :dependencies non-dev-proj)))
+ :ok
+ (catch Exception e
+ ;; lein resolve-dependencies wraps a
+ ;; DependencyResolutionException in an ex-info, so if we want
+ ;; the real cause of failure we have to dig for it:
+ (if-let [arts (seq (missing-artifacts-from-exception e))]
+ (doseq [art arts]
+ (resolve-artifact e art))
+ (throw e))))))
(defn build-deps
"Like 'lein deps', but also builds voom-versioned things as needed."

0 comments on commit cd5174b

Please sign in to comment.
Something went wrong with that request. Please try again.