Skip to content

Commit 1003227

Browse files
committed
fix: trim extra slash
Signed-off-by: manifestori <[email protected]>
1 parent b8d6f03 commit 1003227

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builder/build_package.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ func BuildPackageSection(packageName string, dirRoot string, pathsIgnore []strin
4848
} else {
4949
newFilePatch = filepath.FromSlash(".\\" + fp)
5050
}
51+
52+
if strings.HasPrefix(".\\\\", newFilePatch) {
53+
newFilePatch = fmt.Sprintf(".\\%s", newFilePatch[3:])
54+
}
5155
} else {
5256
newFilePatch = filepath.FromSlash("./" + fp)
5357
}

0 commit comments

Comments
 (0)