Merge pull request #16027 from Microsoft/10662-utimes
Windows: Fix dockerfile ADD from HTTP Upstream-commit: 6ffbea3c94ea4b3f6177dff3e7dc40e4c67dc9f4 Component: engine
This commit is contained in:
@@ -348,8 +348,11 @@ func calcCopyInfo(b *builder, cmdName string, cInfos *[]*copyInfo, origPath stri
|
||||
}
|
||||
}
|
||||
|
||||
if err := system.UtimesNano(tmpFileName, times); err != nil {
|
||||
return err
|
||||
// Windows does not support UtimesNano.
|
||||
if runtime.GOOS != "windows" {
|
||||
if err := system.UtimesNano(tmpFileName, times); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
ci.origPath = filepath.Join(filepath.Base(tmpDirName), filepath.Base(tmpFileName))
|
||||
|
||||
Reference in New Issue
Block a user