rules_docker icon indicating copy to clipboard operation
rules_docker copied to clipboard

Incorrect ordering of "history" entry in image JSON

Open jfirebaugh opened this issue 3 years ago • 0 comments

🐞 bug report

Affected Rule

Any rule that adds new layers to a base container image

Is this a regression?

No

Description

In the "history" entry of the image JSON, the entries for Bazel-created layers are first, followed by base layer entries. This is incorrect: per the specification:

history is an array of objects describing the history of each layer. The array is ordered from bottom-most layer to top-most layer.

🔬 Minimal Reproduction

https://github.com/jfirebaugh/rules_docker_bug_2093

jfirebaugh avatar May 25 '22 02:05 jfirebaugh