Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion runbot/models/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down