|
|
|
@ -242,7 +242,6 @@ func (c *Client) Pull(ref string, options ...PullOption) (*PullResult, error) {
|
|
|
|
|
oras.WithLayerDescriptors(func(l []ocispec.Descriptor) {
|
|
|
|
|
layers = l
|
|
|
|
|
}))
|
|
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
fmt.Println(err)
|
|
|
|
|
return nil, err
|
|
|
|
@ -456,7 +455,11 @@ func (c *Client) Push(data []byte, ref string, options ...PushOption) (*PushResu
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
manifestData, manifest, err := content.GenerateManifest(&configDescriptor, nil, descriptors...)
|
|
|
|
|
if err = memoryStore.StoreManifest(ref, manifest, manifestData); err != nil {
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := memoryStore.StoreManifest(ref, manifest, manifestData); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|