-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Warn when attempting to change hard-coded eval-in-leiningen fields #769
Comments
Yeah, in this case the problem is that you can't change |
But using |
I'd say it's a loophole. The point of trampoline is to avoid the creation of a subprocess, which is something you already get by definition with |
I figured it was.
I've got project-specific tasks defined in On a related note, I've got a more minimal example of the problem: 1.) Start a new project with 2.) Modify (defproject tproj "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.3.0"]]
:eval-in-leiningen true
:aot [tproj.core]
:main tproj.core) 3.) and (ns tproj.core
(:gen-class :main true))
(defn -main [& args]
(println "Hello, Main!")) And you get the following behavior:
Taking out Thanks for all your hard work on this, by the way. It's a really nice thing. |
Charles Parker notifications@github.com writes:
OK, that's handled much better by this:
[...]
This might be pointing to a different problem where the project's default |
Indeed it is - I've made a few posts so it doesn't get forgotten. I'd also be happy to do a little PR to update PLUGINS.md with this information if you think it would be useful. I think it's a pretty common case and there's not much on the innertubes about it (as it is in 2.x). |
@charleslparker +1 on a PR or wiki edit to update lein project documentation to point this out. This is great stuff - somehow I didn't know about it either. |
Yeah, there's a brief mention in PLUGINS.md, but I agree it's not easy to find. Happy to have that improved. |
Leaving this open with a different name so we could get warnings about what can't be changed with |
I don't have much experience with Leiningen, but this looks awfully strange (note that I have
lein2
as both 2.x and 1.7.x are running on my system).Clearly
trampoline
does have some effect. The same thing happens withlein2 test
; I can run tests when using trampoline, but the build fails when I don't.My
project.clj
:The text was updated successfully, but these errors were encountered: