Merge pull request #25290 from karalabe/tar-archive-folder-time

internal/build: add a timestamp to the tar archive folder
pull/25293/head
Péter Szilágyi 3 years ago committed by GitHub
commit d740d6e741
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/build/archive.go

@ -25,6 +25,7 @@ import (
"os"
"path/filepath"
"strings"
"time"
)
type Archive interface {
@ -159,6 +160,7 @@ func (a *TarballArchive) Directory(name string) error {
Name: a.dir,
Mode: 0755,
Typeflag: tar.TypeDir,
ModTime: time.Now(),
})
}

Loading…
Cancel
Save