You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Set the default behavior, in case people don't have core.autocrlf set.
*text=auto
This doesn't play well with go fmt, which always converts files to LF (golang/go#16355). If you run go fmt on unchanged source files, it creates a diff in line endings:
sdk\internal\perf\testdata\perf> go fmt .
main.go
no_op_perf.go
sleep_perf.go
sdk\internal\perf\testdata\perf> git diff
warning: LF will be replaced by CRLF in sdk/internal/perf/testdata/perf/main.go.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in sdk/internal/perf/testdata/perf/no_op_perf.go.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in sdk/internal/perf/testdata/perf/sleep_perf.go.
The file will have its original line endings in your working directory
Perhaps this repo should be configured to always checkout files with LF, even on Windows, for better compat with go fmt?
The text was updated successfully, but these errors were encountered:
Hi @mikeharder, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.
The
.gitattributes
in this repo is currently configured forauto
, which means files are checked out with CRLF on Windows:azure-sdk-for-go/.gitattributes
Lines 1 to 2 in e1930a7
This doesn't play well with
go fmt
, which always converts files to LF (golang/go#16355). If you rungo fmt
on unchanged source files, it creates a diff in line endings:Perhaps this repo should be configured to always checkout files with LF, even on Windows, for better compat with
go fmt
?The text was updated successfully, but these errors were encountered: