Skip to content

Commit d6b870a

Browse files
mlandolfi90claude
andcommitted
fix(build): force LF line endings for shell scripts
With git's Windows default (core.autocrlf=true) every .sh checks out with CRLF, and the Docker cross-build fails at clean-c: bash cannot source scripts/path-safety.sh ($'\r': command not found). Declaring *.sh text eol=lf keeps checkouts LF on every platform regardless of local git config. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: mlandolfi90 <mlandolfi90@users.noreply.github.com>
1 parent d90986b commit d6b870a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.gitattributes‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Shell scripts must stay LF: with git's Windows default (core.autocrlf=true)
2+
# they check out as CRLF and bash inside the build containers rejects them.
3+
*.sh text eol=lf
4+
15
# Vendored tree-sitter grammars — machine-generated, hide from stats and diffs
26
internal/cbm/vendored/grammars/**/parser.c linguist-generated=true diff=false
37
internal/cbm/vendored/grammars/**/scanner.c linguist-generated=true diff=false

0 commit comments

Comments
 (0)