This repository was archived by the owner on Mar 27, 2024. It is now read-only.
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
Wrong diff labels output 'entries have been added to ...' #375
Closed
Description
Expected behavior
Correct naming what is added where.
Actual behavior
It reports something has been added to imageA, but its the other way round.
Output should be:
These entries have been added to bbbbb:latest:
The template is probably just wrong.
Information
- container-diff version: v0.17.0 built from git bea7ad9
- Operating system: macOS
Steps to reproduce the behavior
-
FROM alpine:latest as A RUN touch A.txt FROM alpine:latest as B RUN touch B.txt
-
docker build -f Dockerfile --target b -t bbbbb:latest . && \ docker build -f Dockerfile --target b -t aaaaa:latest .
-
container-diff diff daemon://aaaaa:latest daemon://bbbbb:latest --type=file
-
Output is misleading:
-----File----- These entries have been added to aaaaa:latest: FILE SIZE /B.txt 0 These entries have been deleted from aaaaa:latest: FILE SIZE /A.txt 0
Metadata
Metadata
Assignees
Labels
No labels