Skip to content

Commit 7d56010

Browse files
authored
Merge pull request #177 from liquidz/dev
Next release
2 parents bf69baa + cbd81e7 commit 7d56010

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

CHANGELOG.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
All notable changes to this project will be documented in this file. This change log follows the conventions of http://keepachangelog.com/[keepachangelog.com].
22

33
== Unreleased (dev)
4+
// {{{
5+
=== Changed
6+
* Bumped kaocha to 1.69.1069.
7+
8+
=== Fixed
9+
* https://github.com/liquidz/antq/issues/176[#176]: Fixed not to overwrite progress bar.
10+
// }}}
411

512
== 1.9.867 (2022-07-22)
613
// {{{

deps.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
:dev
2727
{:extra-paths ["test"
2828
"test/resources"]
29-
:extra-deps {lambdaisland/kaocha {:mvn/version "1.68.1059"}
29+
:extra-deps {lambdaisland/kaocha {:mvn/version "1.69.1069"}
3030
lambdaisland/deep-diff2 {:mvn/version "2.3.127"}}
3131
:jvm-opts ["-Dclojure.core.async.go-checking=true"]}
3232

src/antq/core.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@
177177
deps)
178178
uniq-deps (distinct-deps org-deps)
179179
_ (report/init-progress uniq-deps options)
180-
uniq-deps-with-vers (pmap #(assoc-versions % options) uniq-deps)
180+
uniq-deps-with-vers (doall (pmap #(assoc-versions % options) uniq-deps))
181+
_ (report/deinit-progress uniq-deps options)
181182
assoc-latest-version* #(assoc-latest-version % options)]
182183
(->> org-deps
183184
(pmap #(complete-versions-by % uniq-deps-with-vers))

src/antq/report.clj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@
2121
(:reporter options)))
2222

2323
(defmethod run-progress :default [_ _] nil)
24+
25+
(defmulti deinit-progress
26+
(fn [_dep options]
27+
(:reporter options)))
28+
29+
(defmethod deinit-progress :default [_ _] nil)

src/antq/report/table.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
[{:keys [width total-count current-count]}]
5454
(let [width (or width 50)
5555
ratio (int (* width (/ current-count total-count)))]
56-
(format "[ %s%s ] %d/%d\r"
56+
(format "[%s%s] %d/%d\r"
5757
(apply str (repeat ratio "#"))
5858
(apply str (repeat (- width ratio) "-"))
5959
current-count
@@ -71,3 +71,7 @@
7171
(swap! count-atom inc)
7272
(log/async-print
7373
(progress-text {:total-count total-count :current-count @count-atom})))))
74+
75+
(defmethod report/deinit-progress "table"
76+
[_ _]
77+
(println ""))

0 commit comments

Comments
 (0)