Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: failed to build plugins in windows

hgaolfbd5a55c5d82
diff --git a/internal/cli/build.go b/internal/cli/build.go
index 43a7aa9f..a5a4d938 100644
--- a/internal/cli/build.go
+++ b/internal/cli/build.go
@@ -484,6 +484,7 @@ func copyDirEntries(sourceFs fs.FS, sourceDir, targetDir string, ignoreDir ...st
// Construct the absolute path for the source file/directory
srcPath := filepath.Join(sourceDir, path)
+ srcPath = filepath.ToSlash(srcPath)
// Construct the absolute path for the destination file/directory
dstPath := filepath.Join(targetDir, path)