Skip to content

Commit e423b48

Browse files
authored
Merge pull request #5409 from aboutcode-org/results-cache-use-location
Use location when determining filename for cache lookup
2 parents 05a98f6 + 70673e4 commit e423b48

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)