From 70673e4c7d795c44e9dace7f104ceceda4fc7118 Mon Sep 17 00:00:00 2001 From: Jono Yang Date: Mon, 2 Nov 2026 13:43:22 -0800 Subject: [PATCH] Use location when determining filename for cache lookup Signed-off-by: Jono Yang --- src/scancode/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scancode/cli.py b/src/scancode/cli.py index 83e3afa11c..e05608a2d0 100644 --- a/src/scancode/cli.py +++ b/src/scancode/cli.py @@ -1524,7 +1524,7 @@ def scan_resource( results_cache_index = '' if use_cached_results and is_file: # compute results_cache_index - filename = commoncode.fileutils.file_name(path) + filename = commoncode.fileutils.file_name(location) results_cache_index = results_cache.compute_results_cache_index(location=location, filename=filename) # update `results` with cached data or add scanner to scanners_to_run if no