Skip to content

feat: improve the error message if non-distributable(foreign) layer is not supported #319

@qweeah

Description

@qweeah

Some artifacts(e.g., Windows base images) contain layers whose distribution is restricted by license. When these images are pushed to a registry, restricted artifacts are not included.

For now, oras.Copy and oras.Fetch will fail if the target artifact contains an non-distributable(foreign) layer since the layer blob doesn't exist in the remote registry. We should

  1. By default skip blob copying if a layer is non-distributable
  2. Provide option to enforce copying a non-distributable layer and follows the foreign link for fetching

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions