fix resolve link for dirs with trailing /

This commit is contained in:
Tejal Desai
2020-03-06 09:38:00 -08:00
parent 7a17e42af9
commit 3cc8aa2a9c
5 changed files with 27 additions and 7 deletions
+1 -2
View File
@@ -577,8 +577,7 @@ func CopyDir(src, dest, buildcontext string, uid, gid int64) ([]string, error) {
fullPath := filepath.Join(src, file)
fi, err := os.Lstat(fullPath)
if err != nil {
fmt.Println(" i am returning from here this", err)
return nil, err
return nil, errors.Wrap(err, "copying dir")
}
if ExcludeFile(fullPath, buildcontext) {
logrus.Debugf("%s found in .dockerignore, ignoring", src)