From 73064285756374ef240acaff95785481f33def25 Mon Sep 17 00:00:00 2001 From: Filinto Duran Date: Wed, 23 Aug 2023 20:35:24 -0500 Subject: [PATCH 1/2] rebase/fix only doc --- golden/golden.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/golden/golden.go b/golden/golden.go index 9d7d5ad..8a51298 100644 --- a/golden/golden.go +++ b/golden/golden.go @@ -40,6 +40,14 @@ type helperT interface { // in the environment before running tests. // // The default value may change in a future major release. +// +// This does not affect the contents of the golden files themselves. And depending on the +// git settings on your system (or in github action platform default like windows), the +// golden files may contain CRLF line endings. You can avoid this by setting the +// .gitattributes file in your repo to use LF line endings for all files, or just the golden files, by +// adding the following line to your .gitattributes file: +// +// * text=auto eol=lf var NormalizeCRLFToLF = os.Getenv("GOTESTTOOLS_GOLDEN_NormalizeCRLFToLF") != "false" // FlagUpdate returns true when the -update flag has been set. From 4ed73505b62d9169e98ac0840717baa898cb1467 Mon Sep 17 00:00:00 2001 From: Filinto Duran Date: Wed, 23 Aug 2023 20:38:17 -0500 Subject: [PATCH 2/2] fix lint line length Signed-off-by: Filinto Duran --- golden/golden.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/golden/golden.go b/golden/golden.go index 8a51298..1ba1c1c 100644 --- a/golden/golden.go +++ b/golden/golden.go @@ -44,8 +44,8 @@ type helperT interface { // This does not affect the contents of the golden files themselves. And depending on the // git settings on your system (or in github action platform default like windows), the // golden files may contain CRLF line endings. You can avoid this by setting the -// .gitattributes file in your repo to use LF line endings for all files, or just the golden files, by -// adding the following line to your .gitattributes file: +// .gitattributes file in your repo to use LF line endings for all files, or just the golden +// files, by adding the following line to your .gitattributes file: // // * text=auto eol=lf var NormalizeCRLFToLF = os.Getenv("GOTESTTOOLS_GOLDEN_NormalizeCRLFToLF") != "false"