diff --git a/builder/build_package.go b/builder/build_package.go index f2a29de4..6d7d7837 100644 --- a/builder/build_package.go +++ b/builder/build_package.go @@ -48,6 +48,10 @@ func BuildPackageSection(packageName string, dirRoot string, pathsIgnore []strin } else { newFilePatch = filepath.FromSlash(".\\" + fp) } + + if strings.HasPrefix(".\\\\", newFilePatch) { + newFilePatch = fmt.Sprintf(".\\%s", newFilePatch[3:]) + } } else { newFilePatch = filepath.FromSlash("./" + fp) }