mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-18 16:35:05 +02:00
Fixed an issue where the image is broken if there are symlink in the destination path when ADD, COPY
This commit is contained in:
@@ -153,13 +153,13 @@ var destinationFilepathTests = []struct {
|
||||
src: "context/bar/",
|
||||
cwd: "/",
|
||||
dest: "pkg/",
|
||||
expectedFilepath: "/pkg/bar",
|
||||
expectedFilepath: "/pkg/",
|
||||
},
|
||||
{
|
||||
src: "context/bar/",
|
||||
cwd: "/newdir",
|
||||
dest: "pkg/",
|
||||
expectedFilepath: "/newdir/pkg/bar",
|
||||
expectedFilepath: "/newdir/pkg/",
|
||||
},
|
||||
{
|
||||
src: "./context/empty",
|
||||
@@ -177,7 +177,7 @@ var destinationFilepathTests = []struct {
|
||||
src: "./",
|
||||
cwd: "/",
|
||||
dest: "/dir",
|
||||
expectedFilepath: "/dir",
|
||||
expectedFilepath: "/dir/",
|
||||
},
|
||||
{
|
||||
src: "context/foo",
|
||||
|
||||
Reference in New Issue
Block a user