mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 11:12:49 +02:00
Also remove leading / from paths to file which are marked as deleted
This commit is contained in:
@@ -112,7 +112,8 @@ func (t *Tar) Whiteout(p string) error {
|
||||
name := ".wh." + filepath.Base(p)
|
||||
|
||||
th := &tar.Header{
|
||||
Name: filepath.Join(dir, name),
|
||||
// Docker uses no leading / in the tarball
|
||||
Name: strings.TrimLeft(filepath.Join(dir, name), "/"),
|
||||
Size: 0,
|
||||
}
|
||||
if err := t.w.WriteHeader(th); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user