copy symlinks (#90)

This commit is contained in:
priyawadhwa
2018-04-14 08:00:20 -07:00
committed by dlorenc
parent 167920c405
commit cebb4031b3
5 changed files with 18 additions and 7 deletions
+2 -2
View File
@@ -142,11 +142,11 @@ func IsDestDir(path string) bool {
// Assume dest is also a dir, and copy to dest/relpath
// If dest is not an absolute filepath, add /cwd to the beginning
func DestinationFilepath(filename, srcName, dest, cwd, buildcontext string) (string, error) {
fi, err := os.Stat(filepath.Join(buildcontext, filename))
fi, err := os.Lstat(filepath.Join(buildcontext, filename))
if err != nil {
return "", err
}
src, err := os.Stat(filepath.Join(buildcontext, srcName))
src, err := os.Lstat(filepath.Join(buildcontext, srcName))
if err != nil {
return "", err
}