Skip to content

Conversation

@mafredri
Copy link
Member

@mafredri mafredri commented Nov 7, 2024

Images of type application/vnd.docker.image.rootfs.diff.tar.gzip seem to
break when you try to push metadata-only layers and the layers all share
the same hash. This doesn't seem to be a problem with OCI images.

Refs coder/envbuilder#385

Images of type application/vnd.docker.image.rootfs.diff.tar.gzip seem to
break when you try to push metadata-only layers and the layers all share
the same hash. This doesn't seem to be a problem with OCI images.

Ref: coder/envbuilder#385
snapshot, err = s.snapshotter.TakeSnapshot(files, shdDelete, s.opts.ForceBuildMetadata)
forceBuildMetadata := s.opts.ForceBuildMetadata
if s.opts.Cache && len(s.opts.Destinations) > 0 && !s.opts.NoPush {
forceBuildMetadata = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably log when we force-enable this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants