Skip to content

Conversation

@rgarcia
Copy link
Contributor

@rgarcia rgarcia commented Dec 22, 2025

Align inspectManifest's digest retrieval with pullToOCILayout to ensure consistent platform-specific digests for multi-arch images.

Previously, inspectManifest returned the manifest index digest for multi-arch images, while pullToOCILayout fetched the platform-specific image. This discrepancy caused cache keys to not match the actual pulled content, leading to cache misses and incorrect cache behavior. The change ensures both functions retrieve the same platform-specific digest.


Open in Cursor Open in Web


Note

Ensures digest discovery matches the actual pulled content for multi-arch images, preventing cache key mismatches.

  • inspectManifest now uses remote.Image(..., WithPlatform(currentPlatform())) and img.Digest() to resolve the platform-specific manifest digest
  • Replaces remote.Head (which returned the manifest index digest) and adds clarifying comments

Written by Cursor Bugbot for commit 9fd3bb4. This will update automatically on new commits. Configure here.

@cursor
Copy link

cursor bot commented Dec 22, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@rgarcia rgarcia marked this pull request as ready for review December 23, 2025 00:00
@rgarcia rgarcia merged commit 0c85a3c into feature/multi-arch-support Dec 23, 2025
3 of 4 checks passed
@rgarcia rgarcia deleted the cursor/oci-manifest-platform-mismatch-7946 branch December 23, 2025 00:00
rgarcia added a commit that referenced this pull request Dec 23, 2025
* feat: add arm64/aarch64 multi-arch support

Add support for arm64 architecture:

- Map arm64 to aarch64 in GetArch() for kernel/binary paths
- Map arm64 to aarch64 in cloud-hypervisor binary extraction
- Add platform-specific OCI image pulling with remote.WithPlatform()
  to correctly pull the right architecture for multi-arch images
- Add golang/protobuf dependency for grpc compatibility

* Refactor inspectManifest to use remote.Image for platform-specific digests (#46)

Co-authored-by: Cursor Agent <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
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.

3 participants