oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.12k stars 2.76k forks source link

windows build does not run in wsl #10783

Closed JorgeMeireles95 closed 5 months ago

JorgeMeireles95 commented 6 months ago

How can we reproduce the crash?

I downloaded a project and managed to install bun, but when I run it it shows this error, but when I used node it worked perfectly The project I tried to run using bun: https://github.com/Miruro-no-kuon/Miruro Node version is v16.20.2 Bun version is 1.1.6 Ubuntu information that I'm running on WSL: Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy

Relevant log output

Bun v1.1.6 (e58d67b4) Windows x64 (baseline)
Args: "bun.exe", "run", "dev"
Elapsed: 2ms | User: 0ms | Sys: 15ms
RSS: 19.06MB | Peak: 19.07MB | Commit: 62.40MB | Faults: 4799

panic(main thread): Internal Assertion Failure: Invalid cache key "\\wsl.localhost\"
See Resolver.assertValidCacheKey for details.
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.1.6 (e58d67b) on windows x86_64_baseline [RunCommand]

panic: Internal Assertion Failure: Invalid cache key "\wsl.localhost\" See Resolver.assertValidCacheKey for details.

Jarred-Sumner commented 5 months ago

Duplicate of #10281

Jarred-Sumner commented 5 months ago

We will fix this, but please follow along in #10281

Jarred-Sumner commented 5 months ago

Fixed by @paperdave in https://github.com/oven-sh/bun/pull/11155

This will be part of the Bun v1.1.9 release.