mirror of https://github.com/databricks/cli.git
refactor: Replace deprecated SetModTime with Modified field
This commit is contained in:
parent
040bd32424
commit
8d041437c7
|
@ -213,7 +213,7 @@ func PatchWheel(ctx context.Context, path, outputDir string) (string, error) {
|
||||||
Name: newName,
|
Name: newName,
|
||||||
Method: f.Method,
|
Method: f.Method,
|
||||||
}
|
}
|
||||||
header.SetModTime(f.ModTime())
|
header.Modified = f.ModTime()
|
||||||
header.Comment = f.Comment
|
header.Comment = f.Comment
|
||||||
if f.FileInfo().IsDir() && !strings.HasSuffix(header.Name, "/") {
|
if f.FileInfo().IsDir() && !strings.HasSuffix(header.Name, "/") {
|
||||||
header.Name += "/"
|
header.Name += "/"
|
||||||
|
|
Loading…
Reference in New Issue