This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-28
Channels
- # announcements (1)
- # beginners (183)
- # boot (2)
- # clara (4)
- # cljs-dev (20)
- # clojure (59)
- # clojure-dev (7)
- # clojure-nl (1)
- # clojure-serbia (1)
- # clojure-sg (1)
- # clojure-spec (4)
- # clojure-uk (15)
- # clojurescript (77)
- # clr (1)
- # data-science (9)
- # datomic (23)
- # docs (3)
- # duct (15)
- # emacs (8)
- # events (1)
- # fulcro (6)
- # instaparse (3)
- # juxt (1)
- # lumo (9)
- # off-topic (18)
- # perun (2)
- # portkey (13)
- # reagent (2)
- # reitit (11)
- # ring (10)
- # shadow-cljs (158)
- # tools-deps (34)
without Srepro
deps aren’t downloaded but with it they are?
clojure -Srepro -Spath
I need the path but also the effect of deps being downloaded, but nothing else. What’s the best option for this?repro should not affect downloading. Are you just seeing m2 caching?
@alexmiller when I e.g. delete tools.cli from my .m2 repo, only -Spath
does not force downloading, but it works with -Srepro
. What should the behavior be?
Oh, you’re misinterpreting stuff due to classpath caching
Normally, if there is a cached classpath, it’s used (and the actual paths aren’t checked, so it won’t notice you deleted from m2). But if there is no cached classpath it will download
if I can set M2_HOME
somehow, I could try to reproduce. Don’t know how to do that with clj
With repro, I think it does not use the cached classpath
So forces download
You can use -Spath -Sforce to do what you want
so in normal circumstances ( I don’t delete something from .m2 manually ) all should work according to plan
Yes, in the normal circumstances things work normally
yeah, but -Sforce
takes longer, that’s not preferred for planck or lumo, so I’ll go for just -Spath
We actually have a ticket open for noticing broken paths
hehe, yes, I mean, there is no logic to actually check for the existence of jars after classpath caching
Merely as an extra data point I ran into this issue yesterday because I’d blown an .m2
dep away whilst deving/testing some CI stuff. I realised I also needed to blow .cpcache
away too to get the effect I wanted; but either a good message, or re-resolving the missing deps would’ve been super nice. It could easily have been a hard error to diagnose.
yeah, I’ve been there (even knowing how it works)
Yes, you can set :deps/local-repo in deps.edn map
ah, that’s actually the issue yes. well, if it takes extra time it would be worth considering not doing it… or with another option
Yeah I haven’t done any eval on it yet
There are also cases where you might expect to have a missing path dir
And would want that to be ok
I have this in deps.edn:
{:deps/local-repo "/tmp/repro"}
and do this from /tmp/repro
:
clj -Sforce -Sdeps '{:deps {org.clojure/tools.cli {:mvn/version "0.3.7"}}}' -e "(require '[clojure.tools.cli])"
it doesn’t seem to use the local dirOh sorry, yeah that :)