setup-wsl + actions/checkout ? #32
-
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.
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. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi there, I converted the issue to a discussion as I think this is more a usage question, not an issue. We can reopen the issue if I'm wrong. Why do you actually try to use Git from inside WSL? Just use the Windows Git and use the checked out files in WSL. If by mucked up line endings you mean that shell scripts have Windows line endings, then you should add a If that is not enough in your opinion, can you provide an example of what you mean / what you try, and why? |
Beta Was this translation helpful? Give feedback.
-
Hmm. I'll look into that and get back to you. Thank you for the advice. |
Beta Was this translation helpful? Give feedback.
-
Confirmed. Closing as this is solvable via .gitattributes (explicitly setting files end of line characters), either:
or like:
|
Beta Was this translation helpful? Give feedback.
Hi there, I converted the issue to a discussion as I think this is more a usage question, not an issue. We can reopen the issue if I'm wrong.
Why do you actually try to use Git from inside WSL? Just use the Windows Git and use the checked out files in WSL.
If by mucked up line endings you mean that shell scripts have Windows line endings, then you should add a
.gitattributes
file that fixes this. See #20 for more information.If that is not enough in your opinion, can you provide an example of what you mean / what you try, and why?