How to disable WSL on windows-latest/windows-2019 for Github Action #6049
Replies: 2 comments
-
I have also tried to use
seems the error of
|
Beta Was this translation helpful? Give feedback.
-
Rather late to the party, but I encountered a similar issue where it appeared that At least, that's what this answer to the question "Why executing 'bash' in the terminal opens wsl on Windows 10?" seemed to suggest [2]. I didn't find a good way to disable WSL (nor convince the runner via setting That was enough to get my job to execute appropriately [3]. Perhaps this doesn't count as disabling WSL, but may be it will help someone else in a similar situation. [1] Within the context of some other code that was "shelling out" to [2] Thanks to Andrii Hnatushchenko for asking and Tonny for that helpful answer. [3] Additional thanks to iirekm for articulating this. It nicely crystalized what I seemed to already be trying to do (^^; |
Beta Was this translation helpful? Give feedback.
-
Background:
we used to use windows-2016 in our github action workflows, till recently realized it is not supported any more. thus, upgraded it to windows-2019/windows-latest.
what the action job is configed to run:
I believe it was working on windows-2016 till now on windows-2019/latest.
the error I got when the line of "git clone" hit is:
I am only guessing, this is because wsl is messed up with cygwin, so if i am able to disable wsl by pwsh as the first step, then cygwin and so on should still work.
(or maybe I am totally wrong.....)
just wanna see if anyone has idea how to fix this.
P.S: I've tried to remove the customized logic (to install cygwin, git, make, ant etc) just let windows-2019 wls handle everything as stated
but then the path seems also mixed up with both "" and "/"
P.S2: I've also tried with
but does not work as well....
Beta Was this translation helpful? Give feedback.
All reactions