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
- By default skip blob copying if a layer is non-distributable
- Provide option to enforce copying a non-distributable layer and follows the foreign link for fetching
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.Copyandoras.Fetchwill fail if the target artifact contains an non-distributable(foreign) layer since the layer blob doesn't exist in the remote registry. We should