From 4f772b2264a3141cc133857552c5a92cea9b7060 Mon Sep 17 00:00:00 2001 From: Sebastian Cardona Date: Sat, 24 Jun 2023 08:17:40 -0500 Subject: [PATCH] feat(build): #990 move cache directory Signed-off-by: Sebastian Cardona --- src/cli/main/cli.py | 6 +++--- src/cli/test_all.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cli/main/cli.py b/src/cli/main/cli.py index 544d95f1..e2870094 100644 --- a/src/cli/main/cli.py +++ b/src/cli/main/cli.py @@ -74,9 +74,9 @@ highlight=False, file=io.TextIOWrapper(sys.stderr.buffer, write_through=True), ) -MAKES_DIR: str = join(environ["HOME_IMPURE"], ".makes") -makedirs(join(MAKES_DIR, "cache"), exist_ok=True) -SOURCES_CACHE: str = join(MAKES_DIR, "cache", "sources") +MAKES_DIR: str = join(environ["HOME_IMPURE"], ".cache") +makedirs(join(MAKES_DIR, "makes"), exist_ok=True) +SOURCES_CACHE: str = join(MAKES_DIR, "makes", "sources") ON_EXIT: List[Callable[[], None]] = [] VERSION: str = "23.06" diff --git a/src/cli/test_all.py b/src/cli/test_all.py index 27c83357..3f117fee 100644 --- a/src/cli/test_all.py +++ b/src/cli/test_all.py @@ -48,7 +48,7 @@ def test_dot_hello_world() -> None: def test_remote_hello_world() -> None: cache = ( os.environ["HOME_IMPURE"] - + "/.makes/cache/sources/github-fluidattacks-makes-main" + + "/.cache/makes/sources/github-fluidattacks-makes-main" ) shutil.rmtree(cache, ignore_errors=True)