refactor: Replace deprecated SetModTime with Modified field

This commit is contained in:
Denis Bilenko (aider) 2025-03-03 20:38:17 +01:00
parent 040bd32424
commit 8d041437c7
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ func PatchWheel(ctx context.Context, path, outputDir string) (string, error) {
Name: newName,
Method: f.Method,
}
header.SetModTime(f.ModTime())
header.Modified = f.ModTime()
header.Comment = f.Comment
if f.FileInfo().IsDir() && !strings.HasSuffix(header.Name, "/") {
header.Name += "/"