Closed twaugh closed 8 years ago
Comparing working to non-working containers:
Working (unsquashed):
$ docker export happy_swartz |tar tv | grep git-core/git-remote
hrwxr-xr-x 0/0 0 2016-03-18 11:49 usr/libexec/git-core/git-remote link to usr/bin/git
hrwxr-xr-x 0/0 0 2016-03-18 11:49 usr/libexec/git-core/git-remote-ext link to usr/bin/git
hrwxr-xr-x 0/0 0 2016-03-18 11:49 usr/libexec/git-core/git-remote-fd link to usr/bin/git
-rwxr-xr-x 0/0 1022176 2016-03-18 11:49 usr/libexec/git-core/git-remote-ftp
hrwxr-xr-x 0/0 0 2016-03-18 11:49 usr/libexec/git-core/git-remote-ftps link to usr/libexec/git-core/git-remote-ftp
hrwxr-xr-x 0/0 0 2016-03-18 11:49 usr/libexec/git-core/git-remote-http link to usr/libexec/git-core/git-remote-ftp
hrwxr-xr-x 0/0 0 2016-03-18 11:49 usr/libexec/git-core/git-remote-https link to usr/libexec/git-core/git-remote-ftp
Non-working (squashed):
$ docker export clever_tesla |tar tv | grep git-core/git-remote
-rwxr-xr-x 0/0 1022176 2016-03-18 11:49 usr/libexec/git-core/git-remote-ftp
Minimal test case:
FROM busybox
RUN mkdir -p /usr/libexec/git-core && \
echo foo > /usr/libexec/git-core/git-remote-ftp && \
ln /usr/libexec/git-core/git-remote-ftp \
/usr/libexec/git-core/git-remote-http
CMD /bin/bash
How to test:
I see:
--- /dev/fd/63 2016-05-25 10:52:17.786930081 +0100
+++ /dev/fd/62 2016-05-25 10:52:17.786930081 +0100
@@ -394 +393,0 @@
-hrw-r--r-- 0/0 0 2016-05-25 10:51 usr/libexec/git-core/git-remote-http link to usr/libexec/git-core/git-remote-ftp
Give me a few minutes go get back at the desk and I'll fix it ;)
Thanks for this report! We need more integration tests for hardlinks, tricky stuff.
This Dockerfile shows up a problem:
Now let's try running the squashed version:
CC @mmilata