Skip to content

fix(layers): avoid using image duplications#119

Merged
mike-sul merged 1 commit intomainfrom
fix-multi-image-per-arch
Feb 19, 2026
Merged

fix(layers): avoid using image duplications#119
mike-sul merged 1 commit intomainfrom
fix-multi-image-per-arch

Conversation

@mike-sul
Copy link
Collaborator

An app service may refer to the image index that includes more than one reference to an image for the same architecture while only one of the images is actually used on a device.

Therefore, to minimize issues in such cases, the process of gathering app layers' metadata during the app publishing is improved:

  1. Skip images with non-target architectures.
  2. Skip images with non-linux OS.
  3. Print warning if an image duplication for the same architecture and for linux OS is found. By default, the first found image is used.

An app service may refer to the image index that includes more than one
reference to an image for the same architecture while only one of the
images is actually used on a device.

Therefore, to minimize issues in such cases, the process of
gathering app layers' metadata during the app publishing is improved:

1. Skip images with non-target architectures.
2. Skip images with non-linux OS.
3. Print warning if an image duplication for the same architecture and
   for linux OS is found. By default, the first found image is used.

Signed-off-by: Mike Sul <mike.sul@foundries.io>
@mike-sul mike-sul requested review from detsch and doanac February 18, 2026 10:26
Copy link
Member

@doanac doanac left a comment

Choose a reason for hiding this comment

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

nice

@mike-sul mike-sul merged commit d3367e3 into main Feb 19, 2026
4 checks passed
@mike-sul mike-sul deleted the fix-multi-image-per-arch branch February 19, 2026 08:49
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