From 389283aeae7658f9ffabf594689ed1438577e09a Mon Sep 17 00:00:00 2001 From: Shawn Hurley Date: Wed, 12 Feb 2025 20:24:55 -0500 Subject: [PATCH] Adding cache file name resolution to the task's * This makes it easier to determine what the path should be for each task, as tasks have more and more divergent data * Removes the cache overwrite for SymbolNotFound and PackageDoesNotExistErrors * Adds the depth to file tree to see effort level at work. * In the future we should consider enhancing this, so that tasks can add data to the trace to make debugging even easier Signed-off-by: Shawn Hurley --- kai/cache.py | 1 - 1 file changed, 1 deletion(-) diff --git a/kai/cache.py b/kai/cache.py index 1fff2123..594c0f75 100644 --- a/kai/cache.py +++ b/kai/cache.py @@ -234,7 +234,6 @@ def _path_with_limit(self, root: Optional[Task], path: Path) -> Path: if len(str(path)) > self._limit and root is not None: root_path = root.get_cache_path(Path(".")) task_path = self.task.get_cache_path(Path(".")) - return root_path.parent / task_path / path.name return path