This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-20
Channels
- # beginners (94)
- # boot (8)
- # cider (21)
- # cljs-dev (3)
- # cljsjs (5)
- # cljsrn (10)
- # clojure (167)
- # clojure-italy (4)
- # clojure-norway (1)
- # clojure-russia (9)
- # clojure-spec (25)
- # clojure-uk (29)
- # clojurescript (20)
- # cursive (12)
- # datomic (55)
- # emacs (10)
- # fulcro (16)
- # graphql (1)
- # hoplon (18)
- # lein-figwheel (30)
- # off-topic (259)
- # onyx (8)
- # other-languages (13)
- # re-frame (1)
- # reagent (62)
- # ring (8)
- # ring-swagger (28)
- # shadow-cljs (187)
- # spacemacs (15)
- # specter (2)
- # testing (12)
- # tools-deps (38)
I just encountered my first instance of a clojure library only being available via github
i.e., it's not on clojars
you are expected to use it by specifying the github repo and a sha
The Cognitect Labs test-runner
is like that -- but I assume you mean "aside from clj
-specific tooling"?
(also my clj-new
is not on Clojars but, again, clj
-specific tooling)
@kenny In settings.xml
I believe...
You certainly don't want your Maven creds in your project's deps file under version control.
deps.edn is static EDN, no variables.
So there is no way to use private Maven repositories? Or does tools-deps read in settings.xml?
@kenny Discussed yesterday in #clojure https://clojurians.slack.com/archives/C03S1KBA2/p1529458093000094
I haven't tried it myself (and haven't seen specific documentation about it).
@kenny I haven't read through all of the details but this is the JIRA issue that covers this https://dev.clojure.org/jira/browse/TDEPS-9
Looks like it relies on Maven's standard settings.xml
file according to the patch in that ticket.
yes, that is all correct
(it was a TIL moment for me so thank you for asking @kenny!)
For Maven deps in authenticated repositories, existing Maven infrastructure is used to convey credentials via the ~/.m2/settings.xml:
<servers>
…
<server>
<id>my-auth-repo</id>
<username>zango</username>
<password>123</password>
</server>
…
</servers>
Then in your deps.edn include a repo with a name matching the <id>:
{:deps
{authenticated/dep {:mvn/version "1.2.3"}}
:mvn/repos
{"my-auth-repo" {:url ""}}}
I added this info to docs: https://clojure.org/reference/deps_and_cli#_maven_authenticated_repos
Thanks. I'd searched for settings.xml
earlier and couldn't find anything in the guides or reference.
I forgot to add it
it is possible
I'm trying to use lein-tools-deps to point to two different deps.edn
, one of which points at the other via relative path
there are some known issues with local to local and relative paths
particularly around :paths
@alexmiller Just a gentle reminder about the module naming issue, you said you had had discussions about this in the context of git deps.
yeah, haven’t had time, and won’t today. but I haven’t completely forgotten
changing :local/root
to be an absolute path resolved things for lein-tools-deps. Hum.
Solution is to not specify the deps.edn files directly in project.clj, just leave it as :project. Then, make an uber deps.edn that points at the deps.edn files. Things resolve as expected
Glad you got this working; if you think it’s a bug though please file an issue with lein-tools-deps
As Alex says, there’s some open bugs on tools.deps
itself to do with paths, so could be that; but could also be due to us resolving paths relative to :project
… would need to have a test case to recreate