Permalink
Browse files

Allow use of dirty working copy in build-deps

This was necessary to build hiccup-bridge, apparently because of a checked-in
native dep in target.
  • Loading branch information...
1 parent 7f836bb commit c758fc6ae5f4f3dd95d6c499841897aefe71d0d9 @Chouser Chouser committed Jan 6, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/leiningen/voom.clj
View
6 src/leiningen/voom.clj
@@ -264,7 +264,11 @@
[proot]
(println "Calling recursive build-deps on:" proot)
(print (:out (sh "lein" "voom" "build-deps" :dir proot)))
- (let [install-cmd ["lein" "voom" "wrap" "install" :dir proot]
+ ;; BEWARE: Allowing dirty working copy here is ONLY OK because the
+ ;; working copy in question was just checked out and cleaned using
+ ;; 'safe-checkout in 'find-matching-projects above:
+ (let [install-cmd ["lein" "voom" "wrap" ":insanely-allow-dirty-working-copy"
+ "install" :dir proot]
_ (apply println "install-versioned-artifact:" install-cmd)
rtn (apply sh install-cmd)]
(when-not (zero? (:exit rtn))

0 comments on commit c758fc6

Please sign in to comment.