We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a43267 commit 01720ceCopy full SHA for 01720ce
cobra/cmd/golden_test.go
@@ -43,7 +43,7 @@ func compareFiles(pathA, pathB string) error {
43
// Don't execute diff if it can't be found.
44
return nil
45
}
46
- diffCmd := exec.Command(diffPath, "-u", pathA, pathB)
+ diffCmd := exec.Command(diffPath, "-u", "--strip-trailing-cr", pathA, pathB)
47
diffCmd.Stdout = output
48
diffCmd.Stderr = output
49
0 commit comments