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