Skip to content

chore: add .gitattributes for consistent line endings#5385

Open
Dieshen wants to merge 1 commit intoDioxusLabs:mainfrom
Dieshen:chore/add-gitattributes
Open

chore: add .gitattributes for consistent line endings#5385
Dieshen wants to merge 1 commit intoDioxusLabs:mainfrom
Dieshen:chore/add-gitattributes

Conversation

@Dieshen
Copy link

@Dieshen Dieshen commented Mar 18, 2026

Summary

  • Adds .gitattributes to normalize line endings to LF across all platforms
  • Marks binary file types (png, jpg, gif, ico, wasm, avif) explicitly

Problem

Windows contributors currently get CRLF warnings on checkout and after running tests (especially from generated cli-harnesses files). This is noisy and can lead to accidental line ending changes in PRs.

Test plan

  • Verified warnings are silenced after adding the file
  • Existing CI should pass unchanged since repo already uses LF

Normalize line endings to LF across all platforms. Without this,
Windows contributors get CRLF warnings on every checkout and test
run due to generated harness files.
@Dieshen Dieshen requested a review from a team as a code owner March 18, 2026 00:45
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