-
Notifications
You must be signed in to change notification settings - Fork 151
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
:classifier "aot" on clojurescipt dependency drops to *clojurescript-version* "0.0-3211" #431
Comments
Can you confirm whether this happens with the bare ClojureScript compiler, i.e. is cljsbuild at fault here? |
When I compile using the cljs.build.api it uses the correct clojurescript version. If that is what you mean? I've experimented with aot, without aot, the exclusions etc. The "AOT" case is the one that triggers the version drop only when going through cljsbuild. Hope that this helps, for now I am building without the aot classifier, and printing the clojurescipt version explicitly in case another drop should occur. -Boy |
I was able to reproduce this problem. It seems that we are passing the correct dependencies to leiningen when calling I probably need to have a look at the leiningen source code or talk to someone from the leiningen team to figure out, why the behaviour is different for aot. |
@mneise I've done a bit of spelunking in Leiningen dealing with transitive dependencies recently, happy to help out. |
@danielcompton Sure, that would be great! We need to figure out where and how the classpath is created. Had a quick look at this file so far: https://github.com/technomancy/leiningen/blob/master/leiningen-core/src/leiningen/core/classpath.clj. |
AOT causes cljsbuild to drop cljs version to 0.0-3211 emezeske/lein-cljsbuild#431
Repo to reproduce this problem: https://github.com/mneise/cljsbuild-431. |
Hi all,
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.170"
;; :classifier "aot"
:exclusion [org.clojure/data.json]
]
[org.clojure/data.json "0.2.6" :classifier "aot"]
When enabling the :classifier "aot" the clojurescript version of 1.7.170 gets ignored and cljs project compiles with 0.0-3211.
I stumbled upon this by accident when using the (random-uuid) function which is not present in 0.0-3211.
-Boy
The text was updated successfully, but these errors were encountered: