Trouble Shooting - archdsp/devenv GitHub Wiki

On WSL

When install yay pkg on WSL

==> ERROR: PKGBUILD contains CRLF characters and cannot be sourced.

Solution

Check .gitconfig core.autocrlf. make

git config --local core.autocrlf input

or when clone,

git -c core.autocrlf=input clone <yay-bin-url>

When error 'syntax error near unexpected token `$'\r'''

sed -i 's/\r$//' ~/.bash_profile

ssh-add -L shows The agent has no identities.

Check newline character is ^M(\r\n) especially when using window.