Skip to content

Commit d9df7aa

Browse files
idsulikndeloof
authored andcommitted
fix(push): Fix unexpected EOF on alpha publish
Signed-off-by: Suleiman Dibirov <[email protected]>
1 parent c9d96b4 commit d9df7aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ocipush/push.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func generateManifest(layers []v1.Descriptor, ociCompat api.OCIVersion) ([]Pusha
179179
config = v1.DescriptorEmptyJSON
180180
artifactType = ComposeProjectArtifactType
181181
// N.B. the descriptor has the data embedded in it
182-
toPush = append(toPush, Pushable{Descriptor: config, Data: nil})
182+
toPush = append(toPush, Pushable{Descriptor: config, Data: make([]byte, len(config.Data))})
183183
default:
184184
return nil, fmt.Errorf("unsupported OCI version: %s", ociCompat)
185185
}

0 commit comments

Comments
 (0)