Skip to content

Commit 85a663e

Browse files
committed
chore(bench): pin mvnw to LF so the wrapper runs on Linux/macOS/WSL
The unix `mvnw` wrapper is stored LF in git, but a Windows checkout (autocrlf) materializes it CRLF, leaving its shebang unrunnable when the working tree is used from WSL/Linux. Pin `mvnw text eol=lf` (and `mvnw.cmd text eol=crlf`) so every checkout keeps the wrapper cross-platform-runnable.
1 parent 7682701 commit 85a663e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# Shell scripts must keep LF endings so they run on Linux/macOS regardless of
22
# the contributor's core.autocrlf setting (a CRLF shebang breaks on Unix).
33
*.sh text eol=lf
4+
5+
# Maven wrapper: the POSIX `mvnw` must stay LF to execute on Linux/macOS/WSL
6+
# (a CRLF shebang is unrunnable there); the Windows `mvnw.cmd` batch stays CRLF.
7+
mvnw text eol=lf
8+
mvnw.cmd text eol=crlf

0 commit comments

Comments
 (0)