File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ v33.0.0 (next next, roadmap)
38
38
- Update Dockerfile and test container build.
39
39
See https://github.com/aboutcode-org/scancode-toolkit/issues/3955
40
40
41
+ - Progress bar now shows length. You can estimate the duration now.
42
+ See https://github.com/aboutcode-org/scancode-toolkit/issues/3342
43
+
41
44
v32.3.1 - 2024-01-06
42
45
--------------------
43
46
Original file line number Diff line number Diff line change @@ -1245,6 +1245,8 @@ def scan_codebase(
1245
1245
1246
1246
# NOTE: we never scan directories
1247
1247
resources = ((r .location , r .path ) for r in codebase .walk () if r .is_file )
1248
+ if progress_manager :
1249
+ resources = list (resources )
1248
1250
1249
1251
use_threading = processes >= 0
1250
1252
runner = partial (
@@ -1280,6 +1282,8 @@ def scan_codebase(
1280
1282
1281
1283
if progress_manager :
1282
1284
scans = progress_manager (scans )
1285
+ # times two because of #3344
1286
+ scans .length = len (resources )* 2
1283
1287
# hack to avoid using a context manager
1284
1288
if hasattr (scans , '__enter__' ):
1285
1289
scans .__enter__ ()
You can’t perform that action at this time.
0 commit comments