mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +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:
parent
5a4777777d
commit
71438391e8
5 changed files with 805 additions and 1 deletions
|
|
@ -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> = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue