fix WSL line ending issues with gitattributes#1
fix WSL line ending issues with gitattributes#1tobsec wants to merge 1 commit intoFOME-Tech:mainfrom
Conversation
wait, are you building in WSL from a clone done on the windows filesystem, rather than in wsl? is your working dir something like |
|
yep, i cloned using git bash on windows. thats my normal everyday workflow using git bash and VS Code on windows thats why i also done like that here. with the small adaptions to the gitattributes, everything runs well for me with that approach, but should also not be a drawback if cloned in wsl or for linux users. in the past, when i compiled RE, i setup everything windows native (no WSL) and it also worked. i was only working with a 2023 baseline, not sure if it works with more recent versions though. |
It's not recommended to do that, even by Microsoft. The performance is extremely bad compared to the WSL native filesystem, there are file permission issues that don't translate well, case sensitivity problems, and others (like, for example,
Whether rusEFI still supports that or not, I don't know. But FOME has decided that to make the build and development environment more consistent and easier to support, only Linux builds are supported. |
Enforce LF line endings for shell scripts via
.gitattributesto prevent$'\r': command not founderrors on Windows Subsystem for Linux (WSL).Fixes issues when having Windows system and
core.autocrlf=truein git config by explicitly setting*.sh text eol=lfin.gitattributes.Changes:
.gitattributeswith*.sh text eol=lfRelated PR: FOME-Tech/fome-fw#711
Tested on WSL with Debian.