From a71dbacc62bf4eeb5756e03970da081f5cfd5e65 Mon Sep 17 00:00:00 2001 From: Saw-jan Date: Thu, 2 Mar 2023 15:03:00 +0545 Subject: [PATCH] extract without mtime information --- .drone.star | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.drone.star b/.drone.star index 3b8d61ad3ca..726ecb93ebf 100644 --- a/.drone.star +++ b/.drone.star @@ -416,7 +416,7 @@ def cacheGoBin(): "name": "archive-go-bin", "image": OC_UBUNTU, "commands": [ - "tar -czvf %s -C /go/bin ." % dirs["gobinTarPath"], + "tar -czvf %s /go/bin" % dirs["gobinTarPath"], ], "volumes": [stepVolumeGo], }, @@ -453,9 +453,7 @@ def restoreGoBinCache(): "name": "extract-go-bin-cache", "image": OC_UBUNTU, "commands": [ - "mkdir -p /go/bin", - "tar -xvf %s -C /go/bin" % dirs["gobinTarPath"], - "chmod +x /go/bin/*", + "tar -xvmf %s -C /" % dirs["gobinTarPath"], ], "volumes": [stepVolumeGo], },