Skip to content

Commit b9d942c

Browse files
ademariagbenjyw
andauthored
Update src/python/pants/backend/docker/util_rules/docker_build_context.py
Co-authored-by: Benjy Weinberger <[email protected]>
1 parent 3da1494 commit b9d942c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/python/pants/backend/docker/util_rules/docker_build_context.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ async def create_docker_build_context(
364364
for artifact in built_package.artifacts:
365365
if isinstance(artifact, BuiltDockerImage):
366366
stable_content = artifact.image_id.encode()
367-
# Use a stable filename for better debugging
367+
# Add `stable` to the file name to emphasize that it contains only
368+
# metadata that is stable for given inputs, and not fields, such as tags,
369+
# that may contain timestamps or otherwise change on each rebuild.
368370
stable_filename = "docker-info.stable.json"
369371
stable_digest = await create_digest(
370372
CreateDigest([FileContent(stable_filename, stable_content)])

0 commit comments

Comments
 (0)