Skip to content

build: check out gradlew with LF line endings - #5

Merged
BartvHelvert merged 1 commit into
masterfrom
build/gradlew-lf
Oct 26, 2026
Merged

BartvHelvert merged 1 commit into
masterfrom
build/gradlew-lf

Conversation

@BartvHelvert

Copy link
Copy Markdown
Owner

What this changes

Adds gradlew text eol=lf to .gitattributes. On Windows with core.autocrlf=true, a fresh clone or worktree got gradlew with CRLF line endings, so bash in WSL failed on its first line and ui-test-wsl.sh couldn't run. The existing *.sh rule doesn't match gradlew because it has no extension. gradlew is the only committed script without an extension.

Fixes #4

How it was tested

  • In a worktree created on Windows with core.autocrlf=true, gradlew had CRLF in the working tree. After this change, re-checking it out gives LF (git ls-files --eol shows i/lf w/lf attr/text eol=lf).
  • The index already holds LF, so no files are renormalized.
  • No test suite was run; the change is checkout configuration only.

Checklist

  • Nothing is special-cased for one extension.
  • A new feature has a UI test.
  • No internal, override-only, obsolete or deprecated platform API.
  • docs/ is updated where behaviour changed, docs/status.md especially.
  • Third-party material keeps its notice and is listed in NOTICE.md.

With core.autocrlf on Windows, a fresh clone or worktree gets gradlew
with CRLF, and bash in WSL then fails on the first line. The *.sh rule
does not match it, having no extension, so name it as well.

Refs #4
@BartvHelvert
BartvHelvert merged commit 2bd8363 into master Oct 26, 2026
5 of 6 checks passed
@BartvHelvert
BartvHelvert deleted the build/gradlew-lf branch October 26, 2026 22:14
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.

gradlew is checked out with CRLF on Windows and fails in WSL

1 participant