This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-12
Channels
- # aleph (10)
- # beginners (62)
- # boot (12)
- # cider (97)
- # cljs-dev (171)
- # clojars (1)
- # clojure (224)
- # clojure-italy (4)
- # clojure-nl (2)
- # clojure-russia (1)
- # clojure-spec (41)
- # clojure-uk (68)
- # clojured (7)
- # clojurescript (115)
- # community-development (4)
- # cursive (2)
- # data-science (1)
- # datomic (18)
- # duct (40)
- # emacs (1)
- # events (1)
- # fulcro (148)
- # funcool (2)
- # graphql (2)
- # immutant (3)
- # jobs (3)
- # keechma (1)
- # luminus (2)
- # numerical-computing (1)
- # off-topic (19)
- # om (6)
- # parinfer (10)
- # pedestal (15)
- # precept (86)
- # reagent (12)
- # ring (3)
- # ring-swagger (2)
- # shadow-cljs (42)
- # spacemacs (19)
- # specter (17)
- # sql (11)
- # tools-deps (78)
- # unrepl (62)
- # vim (28)
I’ll pretend I didn’t see that :)
does quephird work with you?
aw, cool. she’s great.
I meant to put all that in pm to Ghadi :)
Added a wiki page with tools that use t.d.a or clj https://github.com/clojure/tools.deps.alpha/wiki/Tools
linked from the readme too if you’re trying to find it later
I think that last line should be cljs-test-runner
, not clj-test-runner
(link is correct, text is not).
depstar is one word @alexmiller - thx for the mention
it’s a wiki, fix as you like :)
and if it’s misconfigured for edits, let me know
I'm getting a 403 when I clone then push @alexmiller
@alexmiller https://github.com/thheller/shadow-cljs also supports using deps.edn
via clojure
. can't edit wiki.
(I can't remember if there is supposed to be an edit button in the UI -- but there isn't one visible)
I’m sure it’s set wrong - seems like the default is always wrong :)
@ghadi clone then push what?
well that’s how normal people do it :) I’m getting Stu to change the setting
@alexmiller going on the current line of thinking, it would be useful if https://github.com/clojure/tools.deps.alpha/blob/88f8e4f0113ba555c3c667bd5fbf60f3887f8140/src/main/clojure/clojure/tools/deps/alpha/reader.clj#L18-L28 let me specify other options particularly -Srepro
other options like?
oh, I see what you mean
good idea, feel free to jira / patch
that affects memoization of course so would need to probably expose the scrape function with a better name
tbh, if I was being very specific, it might be just that I need the version that Stu originally created where the different config files get labelled.
well that idea is still in play for several reasons
prob the same reasons you’re interested in it
that’s going to be a mildly painful change though across the script and tda
can a github dep in deps.edn
specify the root path (into the repo) for the desired library?
Yeah with :deps/root
Relative in the repo
To the base dir
@mhuebert fyi, when a transitive dependency does :local/root
, it is relative to where you're running clj
from. So you can't put things in sub-dirs, it has to be flat.
but I am seeing:
Error building classpath. nil
java.lang.NullPointerException
at clojure.string$starts_with_QMARK_.invokeStatic(string.clj:364)
at clojure.string$starts_with_QMARK_.invoke(string.clj:360)
at clojure.tools.gitlibs.impl$call_with_auth.invokeStatic(impl.clj:48)
at clojure.tools.gitlibs.impl$call_with_auth.invoke(impl.clj:41)
at clojure.tools.gitlibs.impl$call_with_auth.invokeStatic(impl.clj:43)
at clojure.tools.gitlibs.impl$call_with_auth.invoke(impl.clj:41)
at clojure.tools.gitlibs.impl$git_fetch.invokeStatic(impl.clj:64)
at clojure.tools.gitlibs.impl$git_fetch.invoke(impl.clj:61)
at clojure.tools.gitlibs.impl$ensure_git_dir.invokeStatic(impl.clj:105)
at clojure.tools.gitlibs.impl$ensure_git_dir.invoke(impl.clj:100)
for the dep
lark/tools {:git/url ""
:sha "cc1305534b1371df3962fd46503dd0478d81a08a"
:deps/root "tools"}
@mhuebert FWIW, I just ran
(! 581)-> clj -Sdeps '{:deps {lark/tools {:git/url ""
:sha "cc1305534b1371df3962fd46503dd0478d81a08a"
:deps/root "tools"}}}
'
and it worked fine and gave me a REPL.well that’s weird. that exact command doesn’t work on my machine, with latest clj from brew
I'm on the latest clojure 1.9.0.358 already installed
(output from brew upgrade clojure
)
I created a new folder mhuebert
and dropped into there to run that command with no deps.edn
file present, just to confirm it works on its own.
If you have deps.edn
, it will read that and maybe the NPE is coming from something else there?
Maybe something in your ~/.clojure/deps.edn
then?
somehow the url
passed to call-with-auth
is nil, when it’s trying to fetch from github
(defn- call-with-auth
([^GitCommand command]
(call-with-auth
(.. command getRepository getConfig (getString "remote" "origin" "url"))
command))
([^String url ^GitCommand command]
(if (and (instance? TransportCommand command)
(not (str/starts-with? url "http")))
(.. ^TransportCommand command (setTransportConfigCallback @ssh-callback) call)
(.call command))))