act: Seemingly invalid path separator on Windows using actions/setup-node
Running command
act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04
on Microsoft Windows 10 Pro Build 10.0.18363
using release v0.2.6
- name: Set up Node.js version 13.x
uses: actions/setup-node@v1
with:
node-version: 13.x
results in
[Continuous Delivery/Node 13.x] �🐳 docker cp src=act/actions-setup-node@v1 dst=/actions\
| internal/modules/cjs/loader.js:985
| throw err;
| ^
|
| Error: Cannot find module '/github/workspace/\actions\actions-setup-node@v1\dist\index.js'
| at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
| at Function.Module._load (internal/modules/cjs/loader.js:864:27)
| at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
| at internal/main/run_main_module.js:18:47 {
| code: 'MODULE_NOT_FOUND',
| requireStack: []
| }
[Continuous Delivery/Node 13.x] ❌ Failure - Set up Node.js version 13.x
Error: exit with `FAILURE`: 1
This seems to be an issue with Windows and POSIX not using the same path separators. However I don’t know where this issue lies, if its with nektos/act or actions/setup-node. If you can’t reproduce the issue it occurs currently with trutoo/event-bus. It does however work in in my WSL.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 17
- Comments: 18 (3 by maintainers)
Windows users, please make sure you’re on “Linux Container”. To check, right-click on Docker Desktop from task bar and choose “Switch to Linux Container”. This will solve the problem.
This works, irrespective of your windows version compatible with WSL2 or not.
Docker Desktop is running Linux containers in my case.
Hi, I would like to point out, that I could not replicate the workaround. I am running Docker Version
2.3.0.3 (45519)
with WSL2 on a freshly updated Windows 10 Pro.Sadly, I have nothing to contribute. Just issues reproducing the workaround 😦
I’m running into this today, Windows 10 x64 with Latest Docker, github action running against ubuntu-latest,
act
version 0.2.9:Result:
Issue is stale and will be closed in 7 days unless there is new activity
I’m receiving this error as well running Windows 10 with Docker and WSL2. I’m trying to run act with the github-actions-demo project.
I will try running on wsl and see how it works, but this bug is really an annoying one.
Did you find a workaround? having the same problem right now.