Skip to content

fix(build): check Go sources out with LF on every platform - #24

Closed
Amazon2025 wants to merge 1 commit into
kite-plus:mainfrom
Amazon2025:fix/gitattributes-go-lf
Closed

Amazon2025 wants to merge 1 commit into
kite-plus:mainfrom
Amazon2025:fix/gitattributes-go-lf

Conversation

@Amazon2025

Copy link
Copy Markdown

core.autocrlf=true is the default on Windows, so every .go file was checked out with CRLF and gofmt -l listed the whole tree. The gofmt gate in CI runs on Linux, where the checkout is already LF, so the breakage only ever showed up for Windows contributors and only before they had edited a single line. Pinning eol=lf for *.go makes the Windows checkout byte-identical to what the gate expects.

core.autocrlf=true is the default on Windows, so every .go file was checked out with CRLF and gofmt -l listed the whole tree. The gofmt gate in CI runs on Linux, where the checkout is already LF, so the breakage only ever showed up for Windows contributors and only before they had edited a single line. Pinning eol=lf for *.go makes the Windows checkout byte-identical to what the gate expects.
@Amazon2025 Amazon2025 closed this Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant