From b8d6f032a885b0edff7b1e6e6969a03d64bdb72e Mon Sep 17 00:00:00 2001 From: manifestori Date: Thu, 16 May 2024 18:40:37 +0200 Subject: [PATCH] fix(windows): use proper relative prefix in windows Signed-off-by: manifestori --- builder/build_package.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/build_package.go b/builder/build_package.go index d6d09763..f2a29de4 100644 --- a/builder/build_package.go +++ b/builder/build_package.go @@ -44,9 +44,9 @@ func BuildPackageSection(packageName string, dirRoot string, pathsIgnore []strin newFilePatch := "" if osType == "windows" { if strings.HasPrefix(fp, dirRoot) { - newFilePatch = filepath.FromSlash("." + fp[dirRootLen:]) + newFilePatch = filepath.FromSlash(".\\" + fp[dirRootLen:]) } else { - newFilePatch = filepath.FromSlash("." + fp) + newFilePatch = filepath.FromSlash(".\\" + fp) } } else { newFilePatch = filepath.FromSlash("./" + fp)