From 43944c8652caed405f11562686fe736ba764ef11 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 19 Mar 2026 13:58:44 +0100 Subject: [PATCH] [IMP] runbot: show cached ADD line in a comment --- runbot/models/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/docker.py b/runbot/models/docker.py index 547a3c6e0..ac1e2ced2 100644 --- a/runbot/models/docker.py +++ b/runbot/models/docker.py @@ -351,7 +351,7 @@ def _get_cached_content(self, docker_build_path): destination = add_match.group('destination') # Use the destination name as hardlink name to avoid rebuild if file content is the same but not the url hardlink_name = re.sub(r'[^a-zA-Z0-9]', '_', destination) - lines[i + 1] = f'COPY {hardlink_name} {destination}' + lines[i + 1] = f'# CACHED {line}\nCOPY {hardlink_name} {destination}\n' cache_file_path = cache_dir / filename if not cache_file_path.exists() or time.time() - cache_file_path.lstat().st_mtime > cache_duration: try: