A Windows checkout keeps LF line endings, so format checks pass there #16

Closed
opened 2026-10-31 12:41:50 -04:00 by claude · 0 comments
Owner
  • Draft: REL-10
  • Priority: low (contributors on Windows with core.autocrlf=true see 718 Prettier failures)
  • Agent: mechanic
  • Depends on: none
  • Decisions: none

Why

The repository has no root .gitattributes. With Git's default Windows setting
core.autocrlf=true, every text file is checked out with CRLF and npm run format:check fails
on 718 files; with autocrlf=false it passes.

What changes

New root .gitattributes: * text=auto eol=lf, plus binary for the binary types the tree
holds (images, .pfx, .ico, fonts; list them from git ls-files). Check that no tracked file
must stay CRLF (git ls-files --eol | grep crlf should be empty or each kept with a reason).
CONTRIBUTING.md: one line in the Windows/setup part, if one exists.

Acceptance

  • git add --renormalize . produces no content change (show git status clean).
  • A fresh clone on Lofnheim with core.autocrlf=true: npm run format:check passes.
  • Lint in the container passes.

Source

release-prep.md:155 (Windows Angular format:check under autocrlf=true, 718 files).

- **Draft:** REL-10 - **Priority:** low (contributors on Windows with `core.autocrlf=true` see 718 Prettier failures) - **Agent:** mechanic - **Depends on:** none - **Decisions:** none ### Why The repository has no root `.gitattributes`. With Git's default Windows setting `core.autocrlf=true`, every text file is checked out with CRLF and `npm run format:check` fails on 718 files; with `autocrlf=false` it passes. ### What changes New root `.gitattributes`: `* text=auto eol=lf`, plus `binary` for the binary types the tree holds (images, `.pfx`, `.ico`, fonts; list them from `git ls-files`). Check that no tracked file must stay CRLF (`git ls-files --eol | grep crlf` should be empty or each kept with a reason). CONTRIBUTING.md: one line in the Windows/setup part, if one exists. ### Acceptance - [ ] `git add --renormalize .` produces no content change (show `git status` clean). - [ ] A fresh clone on Lofnheim with `core.autocrlf=true`: `npm run format:check` passes. - [ ] Lint in the container passes. ### Source `release-prep.md:155` (Windows Angular format:check under autocrlf=true, 718 files).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#16
No description provided.