From 2408eeceba608216770d3fc1e3b2c05c62216a92 Mon Sep 17 00:00:00 2001 From: Douglas De Toni Machado Date: Mon, 17 May 2021 07:10:09 -0300 Subject: [PATCH] Fix plugin unzip call on windows --- pkg/plugins/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/plugins/client.go b/pkg/plugins/client.go index 26c1f801b..836302f0b 100644 --- a/pkg/plugins/client.go +++ b/pkg/plugins/client.go @@ -281,7 +281,7 @@ func unzipFile(f *zipa.File, dest string) error { defer func() { _ = rc.Close() }() - pathParts := strings.SplitN(f.Name, string(os.PathSeparator), 2) + pathParts := strings.SplitN(f.Name, "/", 2) p := filepath.Join(dest, pathParts[1]) if f.FileInfo().IsDir() {