ui bug on bad analysis result
This commit is contained in:
parent
49c0002a0e
commit
56e8530dea
@ -115,12 +115,10 @@ func (img *ImageDirectoryRef) ToImage() (*image.Image, error) {
|
|||||||
// note that the resolver config stores images in reverse chronological order, so iterate backwards through layers
|
// note that the resolver config stores images in reverse chronological order, so iterate backwards through layers
|
||||||
// as you iterate chronologically through history (ignoring history items that have no layer contents)
|
// as you iterate chronologically through history (ignoring history items that have no layer contents)
|
||||||
// Note: history is not required metadata in a docker image!
|
// Note: history is not required metadata in a docker image!
|
||||||
tarPathIdx := 0
|
for layerIdx, id := range img.layerOrder {
|
||||||
for layerIdx := len(trees) - 1; layerIdx >= 0; layerIdx-- {
|
|
||||||
id := img.layerOrder[layerIdx]
|
|
||||||
layers[layerIdx] = &layer{
|
layers[layerIdx] = &layer{
|
||||||
obj: img.layerMap[id],
|
obj: img.layerMap[id],
|
||||||
index: tarPathIdx,
|
index: layerIdx,
|
||||||
tree: trees[layerIdx],
|
tree: trees[layerIdx],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -129,4 +127,5 @@ func (img *ImageDirectoryRef) ToImage() (*image.Image, error) {
|
|||||||
Trees: trees,
|
Trees: trees,
|
||||||
Layers: layers,
|
Layers: layers,
|
||||||
}, nil
|
}, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user