Skip to content

Commit

Permalink
Fix issue #2091
Browse files Browse the repository at this point in the history
  • Loading branch information
3duard0 committed Jun 9, 2016
1 parent 66c7f9a commit 8f32541
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/leiningen/run.clj
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 8f32541

Please sign in to comment.