Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lein with-profile interacts badly with lein-localrepo calling main/exit #13

Open
jonathanj opened this issue Jul 2, 2018 · 0 comments

Comments

@jonathanj
Copy link

jonathanj commented Jul 2, 2018

$ lein with-profile +user localrepo install some.jar com.some/jar 1.2.3
Error encountered performing task 'localrepo' with profile(s): 'base,system,user,provided,dev'
Suppressed exit

Setting the DEBUG envvar produces the following useful snippet:

…
Error encountered performing task 'localrepo' with profile(s): 'base,system,user,provided,dev'
clojure.lang.ExceptionInfo: Suppressed exit {:exit-code 0, :suppress-msg true}
    at clojure.core$ex_info.invokeStatic(core.clj:4617)
    at clojure.core$ex_info.invoke(core.clj:4617)
    at leiningen.core.main$exit.invokeStatic(main.clj:160)
    at leiningen.core.main$exit.doInvoke(main.clj:152)
    at clojure.lang.RestFn.invoke(RestFn.java:410)
    at leiningen.localrepo$c_install_STAR_.invokeStatic(localrepo.clj:121)
    …

The documentation of leiningen.core.main/exit says you can rebind *exit-process?* but is it necessary for lein-localrepo to call main/exit itself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant