Skip to content

fix: add .gitattributes to enforce LF for Go files#52

Merged
HerbHall merged 1 commit intomainfrom
fix/gofmt-line-endings
Mar 2, 2026
Merged

fix: add .gitattributes to enforce LF for Go files#52
HerbHall merged 1 commit intomainfrom
fix/gofmt-line-endings

Conversation

@HerbHall
Copy link
Copy Markdown
Owner

@HerbHall HerbHall commented Mar 2, 2026

Summary

  • Adds .gitattributes to enforce LF line endings for *.go and *.sh files
  • Fixes golangci-lint gofmt violations caused by Windows CRLF line endings on checkout
  • Pre-push hook now passes cleanly (was blocking branch deletions)

Test plan

  • go build ./... passes
  • go test ./... passes
  • golangci-lint run ./... reports 0 issues
  • Pre-push hook passes all checks

🤖 Generated with Claude Code

gofmt requires LF line endings. On Windows with core.autocrlf=true,
Go files are checked out with CRLF causing golangci-lint gofmt
violations. The .gitattributes forces LF for *.go and *.sh files.

Co-Authored-By: Claude <noreply@anthropic.com>
@HerbHall HerbHall merged commit f09b601 into main Mar 2, 2026
2 checks passed
@HerbHall HerbHall deleted the fix/gofmt-line-endings branch March 2, 2026 18:47
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