Skip to content

Commit 9b9e659

Browse files
author
Ramkumar Chinchani
committed
fix: media-types are fixed
1 parent bf3be76 commit 9b9e659

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,6 @@ require (
289289

290290
replace (
291291
github.com/opencontainers/umoci => github.com/project-stacker/umoci v0.0.0-20240906174318-e9397ba4ced0
292-
machinerun.io/atomfs => github.com/rchincha/atomfs v0.0.0-20241202055124-ec75088f9adc
292+
machinerun.io/atomfs => github.com/rchincha/atomfs v0.0.0-20241204024552-68b03282581c
293293
stackerbuild.io/stacker-bom => github.com/project-stacker/stacker-bom v0.0.0-20240509203427-4d685e046780
294294
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,8 @@ github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+Gx
818818
github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
819819
github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo=
820820
github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo=
821-
github.com/rchincha/atomfs v0.0.0-20241202055124-ec75088f9adc h1:gMkzDlZoVwZia1hxClVziZkxs4YS59kWEmxnT3TKfR4=
822-
github.com/rchincha/atomfs v0.0.0-20241202055124-ec75088f9adc/go.mod h1:woheEy3EVXE+AFLGwmBRSMtmcOKBM71qiDEYaq7Nwng=
821+
github.com/rchincha/atomfs v0.0.0-20241204024552-68b03282581c h1:bZ5FHJXuXq02Zz0Kn9WYEsIl34GB/zO+K96FqFQ9ii0=
822+
github.com/rchincha/atomfs v0.0.0-20241204024552-68b03282581c/go.mod h1:woheEy3EVXE+AFLGwmBRSMtmcOKBM71qiDEYaq7Nwng=
823823
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
824824
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
825825
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=

pkg/types/layer_type.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,20 @@ func NewLayerTypeManifest(manifest ispec.Manifest) (LayerType, error) {
7373
case squashfs.BaseMediaTypeLayerSquashfs:
7474
// older stackers generated media types without compression information
7575
fallthrough
76-
case squashfs.GenerateSquashfsMediaType(squashfs.GzipCompression, verity.VerityMetadataMissing):
76+
case squashfs.GenerateSquashfsMediaType(squashfs.GzipCompression):
7777
fallthrough
78-
case squashfs.GenerateSquashfsMediaType(squashfs.ZstdCompression, verity.VerityMetadataMissing):
78+
case squashfs.GenerateSquashfsMediaType(squashfs.ZstdCompression):
7979
return NewLayerType("squashfs", verity.VerityMetadataMissing)
80-
case squashfs.GenerateSquashfsMediaType(squashfs.GzipCompression, verity.VerityMetadataPresent):
80+
case squashfs.GenerateSquashfsMediaType(squashfs.GzipCompression):
8181
fallthrough
82-
case squashfs.GenerateSquashfsMediaType(squashfs.ZstdCompression, verity.VerityMetadataPresent):
82+
case squashfs.GenerateSquashfsMediaType(squashfs.ZstdCompression):
8383
return NewLayerType("squashfs", verity.VerityMetadataPresent)
8484
case erofs.BaseMediaTypeLayerErofs:
8585
// older stackers generated media types without compression information
8686
fallthrough
87-
case erofs.GenerateErofsMediaType(erofs.LZ4HCCompression, verity.VerityMetadataMissing):
87+
case erofs.GenerateErofsMediaType(erofs.LZ4HCCompression):
8888
return NewLayerType("erofs", verity.VerityMetadataMissing)
89-
case erofs.GenerateErofsMediaType(erofs.LZ4HCCompression, verity.VerityMetadataPresent):
89+
case erofs.GenerateErofsMediaType(erofs.LZ4HCCompression):
9090
return NewLayerType("erofs", verity.VerityMetadataPresent)
9191
case ispec.MediaTypeImageLayerGzip:
9292
fallthrough

0 commit comments

Comments
 (0)