rules_docker
rules_docker copied to clipboard
Incorrect ordering of "history" entry in image JSON
🐞 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:
historyis 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