Skip to content

Commit 5e1c2ab

Browse files
committed
wip: Fix application layer order
1 parent 38862b9 commit 5e1c2ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/containertool/containertool.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ enum AllowHTTP: String, ExpressibleByArgument, CaseIterable { case source, desti
161161
config: inherited_config,
162162
rootfs: .init(
163163
_type: "layers",
164-
diff_ids: [
164+
diff_ids: baseimage_config.rootfs.diff_ids + [
165165
// The diff_id is the digest of the _uncompressed_ layer archive.
166166
// It is used by the runtime, which might not store the layers in
167167
// the compressed form in which it received them from the registry.
168168
digest(of: tardiff)
169-
] + baseimage_config.rootfs.diff_ids
169+
]
170170
),
171171
history: [.init(created: timestamp, created_by: "containertool")]
172172
)
@@ -184,7 +184,7 @@ enum AllowHTTP: String, ExpressibleByArgument, CaseIterable { case source, desti
184184
schemaVersion: 2,
185185
mediaType: "application/vnd.oci.image.manifest.v1+json",
186186
config: config_blob,
187-
layers: [application_layer] + baseimage_manifest.layers
187+
layers: baseimage_manifest.layers + [application_layer]
188188
)
189189

190190
// MARK: Upload base image

0 commit comments

Comments
 (0)