Skip to content

ci: enforce LF line endings for script test fixtures - #324

Merged
mike-hunhoff merged 1 commit into
masterfrom
fix/script-line-endings
Aug 12, 2026
Merged

ci: enforce LF line endings for script test fixtures#324
mike-hunhoff merged 1 commit into
masterfrom
fix/script-line-endings

Conversation

@mike-hunhoff

Copy link
Copy Markdown
Collaborator

Enforces Unix LF line endings for all script test fixtures (*.aspx_, *.cs_, *.py_, *.html_) on all operating systems. On Windows CI runners, Git defaults to converting line endings to CRLF (\r\n), adding an extra byte per line break and shifting Tree-Sitter's AST byte offsets. Adding this .gitattributes rule prevents automatic line ending conversions during checkout, keeping byte offsets OS-agnostic and resolving unit test failures in tests/test_ts.py.

@mike-hunhoff
mike-hunhoff merged commit 2332588 into master Aug 12, 2026
10 checks passed
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