From 68cd0cda4a5b092a9cd6aee5887dbd2aea96a5e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 12 Jul 2022 14:35:35 +0300 Subject: [PATCH] internal/build: add a timestamp to the tar archive folder --- internal/build/archive.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/build/archive.go b/internal/build/archive.go index 8b3ac23d1..c16246070 100644 --- a/internal/build/archive.go +++ b/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(), }) }