Skip to content

Commit 70673e4

Browse files
committed
Use location when determining filename for cache lookup
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 05a98f6 commit 70673e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/scancode/cli.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ def scan_resource(
15241524
results_cache_index = ''
15251525
if use_cached_results and is_file:
15261526
# compute results_cache_index
1527-
filename = commoncode.fileutils.file_name(path)
1527+
filename = commoncode.fileutils.file_name(location)
15281528
results_cache_index = results_cache.compute_results_cache_index(location=location, filename=filename)
15291529

15301530
# update `results` with cached data or add scanner to scanners_to_run if no

0 commit comments

Comments
 (0)