mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
Anchor the cache to the project root
This commit is contained in:
parent
b05b8e2087
commit
b685695fef
1 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
from collections import Counter, defaultdict
|
from collections import Counter, defaultdict
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
import networkx as nx
|
import networkx as nx
|
||||||
import tiktoken
|
import tiktoken
|
||||||
|
@ -231,13 +232,13 @@ class RepoMap:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def load_tags_cache(self):
|
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):
|
def save_tags_cache(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def load_ident_cache(self):
|
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):
|
def save_ident_cache(self):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue