lein deps: 저장소에서 env/VARIABLE NAME을 사용하는 경우 유효성 검사에 실패합니다.
6792 단어 leiningen
묘사
Environment vars lein deps를 참고하는 환매 협의를 지정하였으나 예외가 있습니다.그것의 발생은 s3 화물차 전용 플러그인의 존재(또는 존재하지 않음)와 무관하다.우리의 모든 내부 환매에서 s3 여행차 플러그인과 공백 프로젝트는 같은 상황이 발생할 것이다.arthur@a:~/tmp$ lein new fooo
Generating a project called fooo based on the 'default' template.
The default template is intended for library projects, not applications.
To see other templates (app, plugin, etc), try `lein help new`.
arthur@a:~/tmp$ cd fooo/
arthur@a:~/tmp/fooo$ ls
doc LICENSE project.clj README.md resources src test
arthur@a:~/tmp/fooo$ lein deps :verify
:no-key [cider/cider-nrepl "0.7.0"]
:no-key [cljs-tooling "0.1.3" :exclusions [[org.clojure/clojure]]]
:no-key [compliment "0.1.3" :exclusions [[org.clojure/clojure]]]
:no-key [org.clojure/java.classpath "0.2.0" :exclusions [[org.clojure/clojure]]]
:no-key [org.clojure/tools.namespace "0.2.5" :exclusions [[org.clojure/clojure]]]
:no-key [org.clojure/tools.trace "0.7.8" :exclusions [[org.clojure/clojure]]]
:no-key [org.tcrawley/dynapath "0.2.3" :exclusions [[org.clojure/clojure]]]
:no-key [clojure-complete "0.2.3" :exclusions [[org.clojure/clojure]]]
:no-key [org.clojure/clojure "1.6.0"]
:no-key [org.clojure/tools.nrepl "0.2.3" :exclusions [[org.clojure/clojure]]]
arthur@a:~/tmp/fooo$ emacs project.clj
arthur@a:~/tmp/fooo$ cat project.clj
(defproject fooo "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories [["yummly-s3" {:url "s3://XXXXX/releases/"
:snapshots {:update :always}
:username :env/AWS_KEY
:passphrase :env/AWS_SECRET}]]
:dependencies [[org.clojure/clojure "1.6.0"]])
arthur@a:~/tmp/fooo$ lein deps :verify
java.lang.IllegalArgumentException: No matching ctor found for class org.sonatype.aether.repository.Authentication
at clojure.lang.Reflector.invokeConstructor (Reflector.java:183)
cemerick.pomegranate.aether$set_authentication.invoke (aether.clj:165)
cemerick.pomegranate.aether$make_repository.invoke (aether.clj:185)
cemerick.pomegranate.aether$resolve_dependencies_STAR_$fn__194.invoke (aether.clj:712)
clojure.core$map$fn__4245.invoke (core.clj:2557)
clojure.lang.LazySeq.sval (LazySeq.java:40)
clojure.lang.LazySeq.seq (LazySeq.java:49)
clojure.lang.Cons.next (Cons.java:39)
clojure.lang.PersistentVector.create (PersistentVector.java:51)
clojure.lang.LazilyPersistentVector.create (LazilyPersistentVector.java:31)
clojure.core$vec.invoke (core.clj:354)
cemerick.pomegranate.aether$resolve_dependencies_STAR_.doInvoke (aether.clj:712)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invoke (core.clj:624)
cemerick.pomegranate.aether$resolve_dependencies.doInvoke (aether.clj:729)
clojure.lang.RestFn.invoke (RestFn.java:512)
leiningen.deps$get_signature.invoke (deps.clj:49)
leiningen.deps$verify.invoke (deps.clj:57)
clojure.lang.AFn.applyToHelper (AFn.java:160)
clojure.lang.AFn.applyTo (AFn.java:144)
clojure.core$apply.invoke (core.clj:626)
clojure.core$partial$fn__4228.doInvoke (core.clj:2468)
clojure.lang.RestFn.invoke (RestFn.java:421)
leiningen.deps$walk_deps.invoke (deps.clj:15)
leiningen.deps$walk_deps.invoke (deps.clj:19)
leiningen.deps$deps.invoke (deps.clj:102)
clojure.lang.Var.invoke (Var.java:383)
clojure.lang.AFn.applyToHelper (AFn.java:156)
clojure.lang.Var.applyTo (Var.java:700)
clojure.core$apply.invoke (core.clj:626)
leiningen.core.main$partial_task$fn__5914.doInvoke (main.clj:240)
clojure.lang.RestFn.applyTo (RestFn.java:139)
clojure.lang.AFunction$1.doInvoke (AFunction.java:29)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invoke (core.clj:626)
leiningen.core.main$apply_task.invoke (main.clj:290)
leiningen.core.main$resolve_and_apply.invoke (main.clj:296)
leiningen.core.main$_main$fn__5979.invoke (main.clj:366)
leiningen.core.main$_main.doInvoke (main.clj:353)
clojure.lang.RestFn.invoke (RestFn.java:421)
clojure.lang.Var.invoke (Var.java:383)
clojure.lang.AFn.applyToHelper (AFn.java:156)
clojure.lang.Var.applyTo (Var.java:700)
clojure.core$apply.invoke (core.clj:624)
clojure.main$main_opt.invoke (main.clj:315)
clojure.main$main.doInvoke (main.clj:420)
clojure.lang.RestFn.invoke (RestFn.java:457)
clojure.lang.Var.invoke (Var.java:394)
clojure.lang.AFn.applyToHelper (AFn.java:165)
clojure.lang.Var.applyTo (Var.java:700)
clojure.main.main (main.java:37)
arthur@a:~/tmp/fooo$ emacs project.clj
arthur@a:~/tmp/fooo$ cat project.clj
(defproject fooo "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:repositories [["yummly-s3" {:url "s3://XXXXX/releases/"
:snapshots {:update :always}
:username "me"
:passphrase "S3kr3t"}]]
:dependencies [[org.clojure/clojure "1.6.0"]])
arthur@a:~/tmp/fooo$ lein deps :verify
:no-key [cider/cider-nrepl "0.7.0"]
:no-key [cljs-tooling "0.1.3" :exclusions [[org.clojure/clojure]]]
:no-key [compliment "0.1.3" :exclusions [[org.clojure/clojure]]]
:no-key [org.clojure/java.classpath "0.2.0" :exclusions [[org.clojure/clojure]]]
:no-key [org.clojure/tools.namespace "0.2.5" :exclusions [[org.clojure/clojure]]]
:no-key [org.clojure/tools.trace "0.7.8" :exclusions [[org.clojure/clojure]]]
:no-key [org.tcrawley/dynapath "0.2.3" :exclusions [[org.clojure/clojure]]]
:no-key [clojure-complete "0.2.3" :exclusions [[org.clojure/clojure]]]
:no-key [org.clojure/clojure "1.6.0"]
:no-key [org.clojure/tools.nrepl "0.2.3" :exclusions [[org.clojure/clojure]]]
테스트:- Java 1.7.0 40 Java HotSpot(TM) 64비트 서버 VM(Ubuntu 및 OSX) 기반 Leiningen 2.4.3
- Java 1.7.0 25 Java HotSpot(TM) 64비트 서버 가상 머신(OSX)
토론 #1
의 Leiningen 2.3.4도 다음과 같습니다.*Java 1.8.0 77 Java HotSpot(TM) 64비트 서버 가상 머신(OSX)의 Leiningen 2.7.1
Reference
이 문제에 관하여(lein deps: 저장소에서 env/VARIABLE NAME을 사용하는 경우 유효성 검사에 실패합니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://github.com/technomancy/leiningen/issues/1643텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)