From ee13fd9d11296b61f9f55ea404574585399699ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Rod=C3=A1k?= Date: Thu, 20 Jun 2024 11:37:14 +0200 Subject: [PATCH] Fix deprecated use of tar.TypeRegA (SA1019) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Rodák --- pkg/archive/archive.go | 2 +- pkg/chunked/internal/compression.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/archive/archive.go b/pkg/archive/archive.go index a2525c9675..733b168333 100644 --- a/pkg/archive/archive.go +++ b/pkg/archive/archive.go @@ -668,7 +668,7 @@ func createTarFile(path, extractDir string, hdr *tar.Header, reader io.Reader, L } } - case tar.TypeReg, tar.TypeRegA: + case tar.TypeReg: // Source is regular file. We use system.OpenFileSequential to use sequential // file access to avoid depleting the standby list on Windows. // On Linux, this equates to a regular os.OpenFile diff --git a/pkg/chunked/internal/compression.go b/pkg/chunked/internal/compression.go index 084fdd9681..5dd8a4b90a 100644 --- a/pkg/chunked/internal/compression.go +++ b/pkg/chunked/internal/compression.go @@ -89,7 +89,6 @@ const ( var TarTypes = map[byte]string{ tar.TypeReg: TypeReg, - tar.TypeRegA: TypeReg, tar.TypeLink: TypeLink, tar.TypeChar: TypeChar, tar.TypeBlock: TypeBlock,