Skip to content

Commit

Permalink
feat(build): fluidattacks#990 move cache directory
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Cardona <sebas03181@gmail.com>
  • Loading branch information
sebas031811 committed Jun 26, 2023
1 parent 3004ae7 commit 701fbaf
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docs/src/api/extensions/fundamentals.md
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ Example:
[DEBUG] Version is 1.0
[INFO] pwd is /data/github/fluidattacks/makes
[INFO] Running tree command on /home/user/.makes/state/example
/home/user/.makes/state/example
[INFO] Running tree command on /home/user/.cache/makes/state/example
/home/user/.cache/makes/state/example
└── dir
└── file
Expand Down
4 changes: 2 additions & 2 deletions src/args/agnostic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# and therefore are agnostic to the framework.
{
stateDirs ? {
global = "$HOME_IMPURE/.makes/state";
project = "$HOME_IMPURE/.makes/state/__default__";
global = "$HOME_IMPURE/.cache/makes/state";
project = "$HOME_IMPURE/.cache/makes/state/__default__";
},
system ? builtins.currentSystem,
}: let
Expand Down
6 changes: 3 additions & 3 deletions src/cli/main/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/makes")
makedirs(MAKES_DIR, exist_ok=True)
SOURCES_CACHE: str = join(MAKES_DIR, "sources")
ON_EXIT: List[Callable[[], None]] = []
VERSION: str = "23.06"

Expand Down
2 changes: 1 addition & 1 deletion src/cli/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/evaluator/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
options = {
globalStateDir = lib.mkOption {
type = lib.types.str;
default = "$HOME_IMPURE/.makes/state";
default = "$HOME_IMPURE/.cache/makes/state";
apply = lib.removeSuffix "/"; # canonicalize
};
projectStateDir = lib.mkOption {
Expand Down

0 comments on commit 701fbaf

Please sign in to comment.