Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'undici' #58

Closed
EliahKagan opened this issue May 27, 2024 · 1 comment
Closed

Cannot find module 'undici' #58

EliahKagan opened this issue May 27, 2024 · 1 comment
Milestone

Comments

@EliahKagan
Copy link

Starting in version 3.1.0, attempting to set up Debian on windows-latest fails with a Cannot find module 'undici' error. This happens with a step written like:

    - name: Set up WSL (Windows)
      uses: Vampire/setup-wsl@v3.1.0
      with:
        distribution: Debian

The error message is:

Error: Cannot find module 'undici'
Require stack:
- D:\a\_actions\Vampire\setup-wsl\v3.1.0\build\distributions\index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:104[8](https://github.com/EliahKagan/setup-wsl-test/actions/runs/9256515712/job/25462635012#step:3:9):15)
    at Function.Module._load (node:internal/modules/cjs/loader:[9](https://github.com/EliahKagan/setup-wsl-test/actions/runs/9256515712/job/25462635012#step:3:10)01:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.2009 (D:\a\_actions\Vampire\setup-wsl\v3.1.0\build\node_modules\@vercel\ncc\dist\ncc\@@notfound.js:1:1)
    at __nccwpck_require__ (D:\a\_actions\Vampire\setup-wsl\v3.1.0\build\webpack:\setup-wsl-ncc-packer\webpack\bootstrap:21:1)
    at Object.8[11](https://github.com/EliahKagan/setup-wsl-test/actions/runs/9256515712/job/25462635012#step:3:12)9 (D:\a\_actions\Vampire\setup-wsl\v3.1.0\build\node_modules\@actions\cache\node_modules\@actions\http-client\lib\index.js:41:1)
    at __nccwpck_require__ (D:\a\_actions\Vampire\setup-wsl\v3.1.0\build\webpack:\setup-wsl-ncc-packer\webpack\bootstrap:21:1)
    at Object.4304 (D:\a\_actions\Vampire\setup-wsl\v3.1.0\build\node_modules\@actions\cache\lib\internal\cacheHttpClient.js:37:1)
    at __nccwpck_require__ (D:\a\_actions\Vampire\setup-wsl\v3.1.0\build\webpack:\setup-wsl-ncc-packer\webpack\bootstrap:21:1)

I have verified that this does not occur in 3.0.0, and does occur in 3.1.0. I first saw it in gitpython-developers/GitPython#1917, where it caused all Windows test jobs to fail. I made the simpler repository https://github.com/EliahKagan/setup-wsl-test to test it, which produced the same failure from this simplified workflow. That the problem is new as of 3.1.0 can be verified by checking these commits.

@Vampire
Copy link
Owner

Vampire commented May 27, 2024

I'm sorry, this seems to be a packaging / release bug.
I'll release 3.1.1 in some minutes that should fix it.

@Vampire Vampire added this to the Next Version milestone May 27, 2024
@Vampire Vampire closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants