File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,14 @@ type helperT interface {
4040// in the environment before running tests.
4141//
4242// The default value may change in a future major release.
43+ //
44+ // This does not affect the contents of the golden files themselves. And depending on the
45+ // git settings on your system (or in github action platform default like windows), the
46+ // golden files may contain CRLF line endings. You can avoid this by setting the
47+ // .gitattributes file in your repo to use LF line endings for all files, or just the golden
48+ // files, by adding the following line to your .gitattributes file:
49+ //
50+ // * text=auto eol=lf
4351var NormalizeCRLFToLF = os .Getenv ("GOTESTTOOLS_GOLDEN_NormalizeCRLFToLF" ) != "false"
4452
4553// FlagUpdate returns true when the -update flag has been set.
You can’t perform that action at this time.
0 commit comments