From b685695fefa835ad915cd8a6d0bb383d2d59a98c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 13 Jul 2023 14:01:07 -0700 Subject: [PATCH] Anchor the cache to the project root --- aider/repomap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aider/repomap.py b/aider/repomap.py index 7535838dc..e8f6e6434 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -6,6 +6,7 @@ import subprocess import sys import tempfile from collections import Counter, defaultdict +from pathlib import Path import networkx as nx import tiktoken @@ -231,13 +232,13 @@ class RepoMap: return True def load_tags_cache(self): - self.TAGS_CACHE = Cache(self.TAGS_CACHE_DIR) + self.TAGS_CACHE = Cache(Path(self.root) / self.TAGS_CACHE_DIR) def save_tags_cache(self): pass def load_ident_cache(self): - self.IDENT_CACHE = Cache(self.IDENT_CACHE_DIR) + self.IDENT_CACHE = Cache(Path(self.root) / self.IDENT_CACHE_DIR) def save_ident_cache(self): pass