Skip to content

Conversation

@stevapple
Copy link
Contributor

@stevapple stevapple commented Jul 30, 2025

This PR:

  • adds a package func resolved() on ClientImage that makes use of the new com.apple.containerization.index.indirect annotation to identify and resolve wrapper indices created by Containerization;
  • replace the digest displayed in container image list with the one of the resolved manifest;
  • use the resolved manifest for container image inspect if the index is a wrapper.

Fixes #212, as shown with the following local result:
image

stevapple and others added 2 commits July 30, 2025 23:59
Upon an indirect manifest, return the original manifest instead of the wrapper
index. This ensures that the manifest returned by 'container image inspect'
matches the original image digest.
- Add displayDigest() method to ClientImage to return original manifest
  digest for single-manifest images instead of wrapper index digest
- Update container image list (both normal and verbose modes) to use
  displayDigest() for consistent digest display
- Ensures digest shown in image list matches the digest from image inspect

Related to issue apple#212

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@stevapple stevapple force-pushed the fix-issue-212 branch 4 times, most recently from 721fb07 to ded9c56 Compare July 30, 2025 16:37
This will help us unify the implementation of indirect image resolution.
@stevapple
Copy link
Contributor Author

@adityaramani may you review the pull if you have time?

Copy link
Contributor

@adityaramani adityaramani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change looks fine - just one minor comment

Copy link
Contributor

@adityaramani adityaramani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@adityaramani adityaramani merged commit ce431b5 into apple:main Aug 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: index.digest not consistent after pulls

2 participants