From d9df7aab6e10780bde48a547d9e25a8842f0fa50 Mon Sep 17 00:00:00 2001 From: Suleiman Dibirov Date: Fri, 27 Sep 2024 18:41:32 +0300 Subject: [PATCH] fix(push): Fix unexpected EOF on alpha publish Signed-off-by: Suleiman Dibirov --- internal/ocipush/push.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ocipush/push.go b/internal/ocipush/push.go index 8f632a878..0296f67da 100644 --- a/internal/ocipush/push.go +++ b/internal/ocipush/push.go @@ -179,7 +179,7 @@ func generateManifest(layers []v1.Descriptor, ociCompat api.OCIVersion) ([]Pusha config = v1.DescriptorEmptyJSON artifactType = ComposeProjectArtifactType // N.B. the descriptor has the data embedded in it - toPush = append(toPush, Pushable{Descriptor: config, Data: nil}) + toPush = append(toPush, Pushable{Descriptor: config, Data: make([]byte, len(config.Data))}) default: return nil, fmt.Errorf("unsupported OCI version: %s", ociCompat) }