mirror of
https://github.com/docker/cli.git
synced 2026-09-27 17:56:04 -04:00
69c28618c2e88d125e80ea1330698c4a53064eb4
build --labels
This fix tries to fix the issue in 29619 where labels passed from `build --labels` are not sorted. As a result, if multiple labels have been passed, each `docker build --labels A=A --labels B=B --labels C=C` will generate different layers. This fix fixes the issue by sort the Labels before they are concatenated to `LABEL ...`. A unit test has been added to cover the changes This fix fixes 29619. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Upstream-commit: d32efdbf8baba891a35c740454624206f41be94a Component: engine
Languages
Go
92.3%
Shell
5.4%
Dockerfile
1.1%
Go-Checksums
0.7%
Makefile
0.3%
Other
0.2%