Skip to content

Commit 3d3b786

Browse files
committed
wip: Intentionally break containertool to check new layering test
1 parent 3c282c1 commit 3d3b786

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Sources/containertool/containertool.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,12 @@ enum AllowHTTP: String, ExpressibleByArgument, CaseIterable { case source, desti
161161
config: inherited_config,
162162
rootfs: .init(
163163
_type: "layers",
164-
// The diff_id is the digest of the _uncompressed_ layer archive.
165-
// It is used by the runtime, which might not store the layers in
166-
// the compressed form in which it received them from the registry.
167-
diff_ids: baseimage_config.rootfs.diff_ids + [digest(of: tardiff)]
164+
diff_ids: [
165+
// The diff_id is the digest of the _uncompressed_ layer archive.
166+
// It is used by the runtime, which might not store the layers in
167+
// the compressed form in which it received them from the registry.
168+
digest(of: tardiff)
169+
] + baseimage_config.rootfs.diff_ids
168170
),
169171
history: [.init(created: timestamp, created_by: "containertool")]
170172
)
@@ -182,7 +184,7 @@ enum AllowHTTP: String, ExpressibleByArgument, CaseIterable { case source, desti
182184
schemaVersion: 2,
183185
mediaType: "application/vnd.oci.image.manifest.v1+json",
184186
config: config_blob,
185-
layers: baseimage_manifest.layers + [application_layer]
187+
layers: [application_layer] + baseimage_manifest.layers
186188
)
187189

188190
// MARK: Upload base image

0 commit comments

Comments
 (0)