From 2eea8a38c3461c54cf356e2f7310776f1152982b Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Wed, 19 Oct 2022 11:50:30 +0200 Subject: Add generation directory as part of the just cache root. This change is introduced to be prepared for future changes such as garbage collection. It is an incompatible change compared to earlier just versions since it modifies the local path to the just cache directory, where among others the CASes, action cache, target-level cache are located. --- bin/just-mr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/just-mr.py') diff --git a/bin/just-mr.py b/bin/just-mr.py index 119f0e7f..d48f18a0 100755 --- a/bin/just-mr.py +++ b/bin/just-mr.py @@ -268,7 +268,7 @@ def git_hash(content): def add_to_cas(data): if isinstance(data, str): data = data.encode('utf-8') - cas_root = os.path.join(ROOT, "protocol-dependent/git-sha1/casf") + cas_root = os.path.join(ROOT, "protocol-dependent/generation-0/git-sha1/casf") basename = git_hash(data) target = os.path.join(cas_root, basename) tempname = os.path.join(cas_root, "%s.%d" % (basename, os.getpid())) @@ -288,7 +288,7 @@ def add_to_cas(data): def cas_path(h): - return os.path.join(ROOT, "protocol-dependent/git-sha1/casf", h) + return os.path.join(ROOT, "protocol-dependent/generation-0/git-sha1/casf", h) def is_in_cas(h): -- cgit v1.2.3