From b49c05fc5b62f077df4bab0b89d0202b5b57a7e6 Mon Sep 17 00:00:00 2001 From: Dominik Przybyl Date: Tue, 1 Oct 2024 11:57:20 +0200 Subject: [PATCH] fixed zipper issue on Windows machines --- pkg/content/zipper.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/content/zipper.go b/pkg/content/zipper.go index 9a6229ed..589f2b98 100644 --- a/pkg/content/zipper.go +++ b/pkg/content/zipper.go @@ -72,9 +72,14 @@ func zip(src string, dest string) error { if err != nil { return err } + if header.Name == "." { + return nil + } + header.Name = pathx.Normalize(header.Name) if info.IsDir() { header.Name += "/" + header.Method = zipper.Store } else { header.Method = zipper.Deflate }