Skip to content

fails to unpack an image if symlink to a directory was replaced with a new dir and its old target removed #183

@uvlad7

Description

@uvlad7

build this (docker build . --network host --tag 'base:42')

FROM buildpack-deps:bookworm

RUN apt-get update -qq -y --allow-unauthenticated && \
    wget https://repo.percona.com/apt/percona-release_latest.bookworm_all.deb && \
    apt install -y ./percona-release_latest.bookworm_all.deb && \
    rm percona-release_latest.bookworm_all.deb && \
    percona-release setup ps57 && apt install -y libperconaserverclient20-dev

run diffoci diff --semantic --report-dir diff docker://base:42 docker://buildpack-deps:bookworm

INFO[0000] Target platforms: [linux/amd64]                                                                                                                                                                                                                                                 
INFO[0000] Loading image "docker.io/library/base:42" from "docker" 
docker.io/library/base:42                       saved
Importing       elapsed: 8.5 s  total:   0.0 B  (0.0 B/s)
INFO[0022] Loading image "docker.io/library/buildpack-deps:bookworm" from "docker" 
docker.io/library/buildpack deps:bookwor        saved
Importing       elapsed: 7.7 s  total:   0.0 B  (0.0 B/s)
WARN[0038] Layer length mismatch (5 vs 4), squashing for comparison (EXPERIMENTAL) 
ERRO[0045] failed to load layer (input-0): mkdir /home/vladimir/profit/kanibug/diff/input-0/usr/include/mysql: file exists 
$ file /home/vladimir/profit/kanibug/diff/input-0/usr/include/mysql                                                                                                                                                                                      
/home/vladimir/profit/kanibug/diff/input-0/usr/include/mysql: symbolic link to mariadb

Seems to be similar to this issue, but I wasn't able to reproduce it on these examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions