Skip to content

Commit e6dbedc

Browse files
paulrdbbatsov
authored andcommitted
Write artifacts to local file
1 parent c177de0 commit e6dbedc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ install.cmd
2424
/.cljs_node_repl/
2525
/out/
2626
/.lein-env
27-
.inline-deps
27+
.inline-deps
28+
/.artifacts-cache

src/refactor_nrepl/artifacts.clj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
;; Ignore artifact if not readable. See #255
4141
nil)))
4242

43-
(def stuff 33)
44-
4543
(defn get-clojars-artifacts!
4644
"Returns a vector of [[some/lib \"0.1\"]...]."
4745
[]
@@ -106,7 +104,8 @@
106104
(defn artifact-list
107105
[{:keys [force]}]
108106
(when (or (= force "true") (stale-cache?))
109-
(update-artifact-cache!))
107+
(update-artifact-cache!)
108+
(spit ".artifacts-cache" @artifacts))
110109
(->> @artifacts keys list*))
111110

112111
(defn artifact-versions

0 commit comments

Comments
 (0)