luminus-framework / luminus

documentation site for Luminus framework
http://www.luminusweb.net/
629 stars 121 forks source link

Using +shadow-cljs has badly formatted dependency #238

Closed gleenn closed 5 years ago

gleenn commented 5 years ago

Looks like something was suppose to be a variable but is processed as a string. In my project.clj file in the dependencies section (verbatim):

[thheller/shadow-cljs shadow-version :scope "provided"]

Pretty sure that "shadow-version" is supposed to be an actual version string because when I run lein deps I get:

Could not find artifact thheller:shadow-cljs:jar:shadow-version in central (https://repo1.maven.org/maven2/) Could not find artifact thheller:shadow-cljs:jar:shadow-version in clojars (https://repo.clojars.org/) This could be due to a typo in :dependencies, file system permissions, or network issues.

gleenn commented 5 years ago

Looks like in:

src/leiningen/new/shadow_cljs.clj

There is this code:

(def shadow-cljs-dependencies '[[com.google.javascript/closure-compiler-unshaded "v20190618":scope "provided"] [org.clojure/google-closure-library "0.0-20190213-2033d5d9":scope "provided"] [thheller/shadow-cljs shadow-version :scope "provided"]])

Should be this: (def shadow-cljs-dependencies `[[com.google.javascript/closure-compiler-unshaded "v20190618":scope "provided"] [org.clojure/google-closure-library "0.0-20190213-2033d5d9":scope "provided"] [thheller/shadow-cljs ~shadow-version :scope "provided"]])

yogthos commented 5 years ago

Hi,

Thanks for the heads up, just pushed out a fix.