Commit bbc9d10
authored
fix: failpoint-toolexec not working on Windows (#90)
On Windows, the compile command is never detected because
`strings.TrimSuffix(goCmd, ".exe")` operates on the full path
(e.g. `C:\...\compile.exe` → `C:\...\compile`) instead of the
base name. The comparison `goCmdBase == "compile"` always fails.
Fix: use `goCmdBase` instead of `goCmd` in TrimSuffix.1 parent 91d91e1 commit bbc9d10
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments