mirror of
https://github.com/mudler/luet.git
synced 2025-09-03 08:14:46 +00:00
Check if a layer is provided in the manifest
This commit is contained in:
@@ -163,8 +163,11 @@ func (*SimpleDocker) ExtractRootfs(opts compiler.CompilerBackendOptions, keepPer
|
||||
layers_sha := []string{}
|
||||
|
||||
for _, data := range manifestData {
|
||||
|
||||
for _, l := range data.Layers {
|
||||
layers_sha = append(layers_sha, strings.Replace(l, "/layer.tar", "", -1))
|
||||
if strings.Contains(l, "layer.tar") {
|
||||
layers_sha = append(layers_sha, strings.Replace(l, "/layer.tar", "", -1))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user