docker / labs-tape

Tape is for packaging applications
Other
8 stars 1 forks source link

set `artifactType` explicitly #21

Closed errordeveloper closed 1 year ago

errordeveloper commented 1 year ago

Currently, Tape relies on registry fallback logic that infers artifactType when a custom media is used. It's probably safe to set artifactType explicitly.

errordeveloper commented 1 year ago

from mutate.ConfigMediaType docs:

// ConfigMediaType modifies the MediaType() of the given image's Config.
//
// If !mt.IsConfig(), this will be the image's artifactType in any indexes it's a part of.

so perhaps it already does the right thing for index, and it's not a registry-side fallback as such.