Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Can't add :repositories with keys that conflict with default. #313

Closed
ath opened this Issue · 2 comments

3 participants

@ath
ath commented

When I specify :repositories {"central" "https://build.dev.net/artifactory/libs-release"} I get a duplicate key error, in branch 1.x.

@spoon16

I am seeing this issue also.

$ lein deps
Exception in thread "main" java.lang.IllegalArgumentException: Duplicate key: central (NO_SOURCE_FILE:0)
    at clojure.lang.Compiler.eval(Compiler.java:5440)
    at clojure.lang.Compiler.eval(Compiler.java:5391)
    at clojure.core$eval.invoke(core.clj:2382)
    at clojure.main$eval_opt.invoke(main.clj:235)
    at clojure.main$initialize.invoke(main.clj:254)
    at clojure.main$script_opt.invoke(main.clj:270)
    at clojure.main$main.doInvoke(main.clj:354)
    at clojure.lang.RestFn.invoke(RestFn.java:457)
    at clojure.lang.Var.invoke(Var.java:377)
    at clojure.lang.AFn.applyToHelper(AFn.java:172)
    at clojure.lang.Var.applyTo(Var.java:482)
    at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: Duplicate key: central
    at clojure.lang.PersistentArrayMap.createWithCheck(PersistentArrayMap.java:70)
    at clojure.core$array_map.doInvoke(core.clj:3391)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:540)
    at leiningen.core$repositories_for.doInvoke(core.clj:172)
    at clojure.lang.RestFn.invoke(RestFn.java:410)
    at leiningen.deps$make_repositories.invoke(deps.clj:62)
    at leiningen.deps$make_deps_task.invoke(deps.clj:102)
    at leiningen.deps$do_deps.invoke(deps.clj:132)
    at leiningen.deps$deps.doInvoke(deps.clj:198)
    at clojure.lang.RestFn.invoke(RestFn.java:410)
    at clojure.lang.Var.invoke(Var.java:365)
    at clojure.lang.AFn.applyToHelper(AFn.java:161)
    at clojure.lang.Var.applyTo(Var.java:482)
    at clojure.core$apply.invoke(core.clj:542)
    at leiningen.core$apply_task.invoke(core.clj:259)
    at leiningen.core$_main.doInvoke(core.clj:325)
    at clojure.lang.RestFn.invoke(RestFn.java:410)
    at clojure.lang.AFn.applyToHelper(AFn.java:161)
    at clojure.lang.RestFn.applyTo(RestFn.java:132)
    at clojure.core$apply.invoke(core.clj:542)
    at leiningen.core$_main.invoke(core.clj:328)
    at user$eval42.invoke(NO_SOURCE_FILE:1)
    at clojure.lang.Compiler.eval(Compiler.java:5424)
    ... 11 more

$ lein --version
Leiningen 1.6.2 on Java 1.6.0_29 Java HotSpot(TM) 64-Bit Server VM
@technomancy
Owner

Should be fixed in 2.x since :repositories is now an ordered map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.