Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update oras.Pack to comply with image-spec v1.1.0-rc4 #532

Closed
Wwwsylvia opened this issue Jul 3, 2023 · 0 comments · Fixed by #550
Closed

Update oras.Pack to comply with image-spec v1.1.0-rc4 #532

Wwwsylvia opened this issue Jul 3, 2023 · 0 comments · Fixed by #550
Labels
enhancement New feature or request
Milestone

Comments

@Wwwsylvia
Copy link
Member

Wwwsylvia commented Jul 3, 2023

We need to update oras.Pack to conform to the following requirements introduced by image-spec v1.1.0-rc4:

  • Use the empty descriptor for config if none is specified
  • Use the empty descriptor as the single layer if none is specified
  • Set the artifactType field in the image manifest

func Pack(ctx context.Context, pusher content.Pusher, artifactType string, blobs []ocispec.Descriptor, opts PackOptions) (ocispec.Descriptor, error) {

@Wwwsylvia Wwwsylvia added the enhancement New feature or request label Jul 3, 2023
@Wwwsylvia Wwwsylvia added this to the v2.3.0 milestone Jul 3, 2023
Wwwsylvia added a commit that referenced this issue Jul 21, 2023
…m to image-spec v1.1.0-rc4 (#550)

1. Introduce `PackOptions.PackManifestType`
2. Introduce `DefaultPackOptions`

Resolves: #532
Signed-off-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
Wwwsylvia added a commit that referenced this issue Aug 7, 2023
Related issue: #532 
Related discussion:
oras-project/oras#1011 (comment)

Signed-off-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
Wwwsylvia added a commit that referenced this issue Aug 22, 2023
This PR refactors `oras.Pack` that was updated by #532.

1. Move the support of Image Manifest `v1.1.0-rc4` to `PackManifest`
2. Deprecate `Pack`

Resolves: #568
Signed-off-by: Lixia (Sylvia) Lei <lixlei@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
1 participant