From b8f4adcc9b30e42f044a9cd07571325e700b7da5 Mon Sep 17 00:00:00 2001 From: umarcor Date: Thu, 5 Sep 2019 12:20:25 +0200 Subject: [PATCH] fix(diff): use arg '--strip-trailing-cr' --- cobra/cmd/golden_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cobra/cmd/golden_test.go b/cobra/cmd/golden_test.go index e4055f33f9..2cf9308e6d 100644 --- a/cobra/cmd/golden_test.go +++ b/cobra/cmd/golden_test.go @@ -46,7 +46,7 @@ func compareFiles(pathA, pathB string) error { // Don't execute diff if it can't be found. return nil } - diffCmd := exec.Command(diffPath, "-u", pathA, pathB) + diffCmd := exec.Command(diffPath, "-u", "--strip-trailing-cr", pathA, pathB) diffCmd.Stdout = output diffCmd.Stderr = output