This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-04
Channels
- # announcements (5)
- # beginners (124)
- # boot (43)
- # braveandtrue (8)
- # calva (1)
- # cider (44)
- # cljs-dev (1)
- # clojure (188)
- # clojure-canada (3)
- # clojure-germany (1)
- # clojure-italy (5)
- # clojure-nl (13)
- # clojure-russia (1)
- # clojure-spec (14)
- # clojure-uk (42)
- # clojurescript (94)
- # core-async (5)
- # cursive (5)
- # datomic (45)
- # duct (3)
- # emacs (6)
- # figwheel-main (93)
- # fulcro (22)
- # graphql (3)
- # hyperfiddle (1)
- # leiningen (3)
- # off-topic (1)
- # pedestal (1)
- # play-clj (1)
- # portkey (1)
- # re-frame (17)
- # reagent (71)
- # remote-jobs (2)
- # rum (3)
- # shadow-cljs (45)
- # spacemacs (17)
- # specter (18)
- # tools-deps (27)
- # unrepl (1)
- # vim (3)
Is there a better way to get a new snapshot build than rm -rf .cpcache ~/.m2/repository/com/bhauman
?
clj -Sforce
should ignore .cpcache But why you want to delete your local maven repo?
just curious
@pesterhazy @delaguardo I'm not certain, but I believe there is delegation to maven for this. So the usual 24h period is in place, regardless of ignoring the cpcache.
@delaguardo when a new version gets uploaded to maven, I need to download it. By deleting the local cache I make sure the files get re-downloaded
Just deleting .cpcache
won't be sufficient AFAIK
@pesterhazy j/w, do boot/lein/mvn provide options for this?
hm… you can not upload to maven new release version (without -SNAPSHOT
suffix) so when maven coordinate is changed in deps.edn (e.g. 1.2.0 -> 1.2.1
) it will download it. For snapshoted versions it works differently: -SNAPSHOT
suffix is replaced with the timestamp and after uploading new snapshot in maven you should have two with different timestamps.
all those cases already handled by tools.deps and there is no need to drop your local cache
I was clearly talking about snapshot builds in my original question, no?
let me check the timestamp theory
just try with -Sforce
without deleting .m2
I will, thanks!
Pretty sure that boot
supports boot -u
to re-download new snapshots
Wanted to check, but the web page doesn't list the command line arguments - it refers you to boot -h
- and installing boot takes 5 min
boot -u
is for upgrading boot tool itself
Ok, it's boot -U
oh no
same, but for the latest snapshot
looks like I misremembered
tools.deps uses daily update strategy for SNAPSHOTs currently so won’t update new ones even with -Sforce
I’m planning to change that but haven’t gotten to it yet
So for the moment you would need to both delete this portion of your .m2 and use -Sforce (no need to drop ALL of your .m2 though)
Or you could gen a pom with -Spom and use mvn -U dependency:tree to have Maven do it (followed by -Sforce to tell deps to update)
thanks for the explanation!
I guess rm -rf
is easy enough, it's just hard to explain to others in the team