Skip to content

Commit

Permalink
Merge PR technomancy#2157
Browse files Browse the repository at this point in the history
  • Loading branch information
hypirion committed Aug 21, 2016
2 parents 549e248 + 8f32541 commit c1e1e72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/leiningen/run.clj
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@
"Loads the project namespaces as well as all its dependencies and then calls
ns/f, passing it the args."
[project given prep-type args]
(let [prepped-args (map #(prep-arg prep-type %) args)]
;; must convert lazy-seq to list(issue #2091)
;; eval can't handle well a form that contains an evaluated empty lazy-seq
(let [prepped-args (apply list (map #(prep-arg prep-type %) args))]
(try (eval/eval-in-project project (run-form given prepped-args))
(catch clojure.lang.ExceptionInfo e
(main/exit (:exit-code (ex-data e) 1))))))
Expand Down

0 comments on commit c1e1e72

Please sign in to comment.