mirror of
https://github.com/affaan-m/ECC.git
synced 2026-08-17 21:15:40 +02:00
fix(opencode): normalize tool paths across platforms (#2459)
Normalize backslash paths for OpenCode formatting and add branch coverage for GitHub coordination behavior.
This commit is contained in:
@@ -107,7 +107,7 @@ function buildFormatterCommand(formatter: Formatter, filePath: string, cwd?: str
|
||||
// Normalize to forward slashes so the emitted command is identical on every
|
||||
// platform. `path.normalize` yields backslashes on Windows, which broke the
|
||||
// command string (and Windows CI); all formatter CLIs accept `/` on Windows.
|
||||
const normalizedPath = path.normalize(filePath).split(path.sep).join("/")
|
||||
const normalizedPath = path.normalize(filePath).replace(/\\/g, "/")
|
||||
|
||||
// Build command based on formatter and platform
|
||||
const commands: Record<Formatter, string> = {
|
||||
|
||||
Reference in New Issue
Block a user