Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Check if symlinks are the same during file system diffing #231

Merged
merged 1 commit into from
May 10, 2018

Conversation

priyawadhwa
Copy link
Contributor

We were getting a bunch of these errors when diffing images in kaniko integration tests:

time="2018-05-09T13:52:58-07:00" level=error msg="Error checking directory entry /etc/systemd/system/timers.target.wants/apt-daily.timer: stat /tmpfs/tmp/gcr.iokaniko-testdocker-dockerfilesdockerfile_test_addlatest601063962/etc/systemd/system/timers.target.wants/apt-daily.timer: no such file or directory\n"

All the files were actually symlinks, so I changed os.Stat to os.Lstat and added a check to see if symlinks are the same when diffing the file system

@priyawadhwa priyawadhwa requested a review from nkubala May 10, 2018 20:01
@priyawadhwa priyawadhwa merged commit 5f6f6ae into GoogleContainerTools:master May 10, 2018
@priyawadhwa priyawadhwa deleted the lstat branch May 10, 2018 20:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants