File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 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 ABOUT files to adapt the ABOUT File Specification.
39
39
See https://github.com/aboutcode-org/scancode-toolkit/issues/4181
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.4.0 - 2025-06-26
42
45
--------------------
43
46
Original file line number Diff line number Diff line change @@ -1252,6 +1252,8 @@ def scan_codebase(
1252
1252
1253
1253
# NOTE: we never scan directories
1254
1254
resources = ((r .location , r .path ) for r in codebase .walk () if r .is_file )
1255
+ if progress_manager :
1256
+ resources = list (resources )
1255
1257
1256
1258
use_threading = processes >= 0
1257
1259
runner = partial (
@@ -1287,6 +1289,8 @@ def scan_codebase(
1287
1289
1288
1290
if progress_manager :
1289
1291
scans = progress_manager (scans )
1292
+ # times two because of #3344
1293
+ scans .length = len (resources )* 2
1290
1294
# hack to avoid using a context manager
1291
1295
if hasattr (scans , '__enter__' ):
1292
1296
scans .__enter__ ()
You can’t perform that action at this time.
0 commit comments