I'm not sure if this issue is for setup-wsl or actions/checkout.
I've run setup-wsl, and that worked. But I'm trying to use actions/checkout now to checkout the repo and it fails in "neat" ways.
- it will default to using windows git and muck up all line endings
1.a)
- add
git and git-lfs additional packages to WSL
- write a
git.cmd override that is wsl git %* so that we use WSL's git
- setup WSLENV so that GITHUB_* and RUNNER_* env vars get passed down to WSL
- basic git commands now work and use WSL's git!
- actions/checkout does indeed use wsl's git, but uses all windows paths (presumably b/c it's running via node in win32)
2.a) have git.cmd use ${{ steps.setup-wsl.outputs.wsl-shell-wrapper-path }} git %* instead, but that just yields:
Invalid arguments
Usage: wsl-sh [-u <user>] <script file a.k.a. {0}>
2.b) tried to override node in the same way as git, but it doesn't work (it either still uses the WIN32 node, not WSL node; or is using the WIN32 env vars and not the WSL env vars)
Any ideas would be greatly appreciated.
I'm not sure if this issue is for setup-wsl or actions/checkout.
I've run setup-wsl, and that worked. But I'm trying to use actions/checkout now to checkout the repo and it fails in "neat" ways.
1.a)
gitandgit-lfsadditional packages to WSLgit.cmdoverride that iswsl git %*so that we use WSL's git2.a) have
git.cmduse${{ steps.setup-wsl.outputs.wsl-shell-wrapper-path }} git %*instead, but that just yields:2.b) tried to override node in the same way as git, but it doesn't work (it either still uses the WIN32 node, not WSL node; or is using the WIN32 env vars and not the WSL env vars)
Any ideas would be greatly appreciated.