From affe60de8fe4386643b1bd365f60a97ab6f9b102 Mon Sep 17 00:00:00 2001 From: PeterKoegel <133140762+PeterKoegel@users.noreply.github.com> Date: Mon, 22 May 2023 16:21:04 +0200 Subject: [PATCH] fix: Fixed path separator in .tgz output artifacts created on windows. Fixes #10562 (#11097) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Kögel Signed-off-by: Dillen Padhiar --- util/archive/archive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/archive/archive.go b/util/archive/archive.go index cd7c502bed20..00f0b68865dc 100644 --- a/util/archive/archive.go +++ b/util/archive/archive.go @@ -88,7 +88,7 @@ func tarDir(sourcePath string, tw *tar.Writer) error { if err != nil { return errors.InternalWrapError(err) } - nameInArchive = filepath.Join(baseName, nameInArchive) + nameInArchive = filepath.ToSlash(filepath.Join(baseName, nameInArchive)) log.Debugf("writing %s", nameInArchive) count++