Closed titanRoyal closed 20 hours ago
@titanRoyal, the latest version of Bun is v1.1.38, but this crash was reported on Bun v1.1.36.
Are you able to reproduce this crash on the latest version of Bun?
bun upgrade
Duplicate of #13806.
Also if you bun link
and bunx <package_name>@link:<package_name>
you can test your package locally (though it would be nice if this was easier).
How can we reproduce the crash?
when I try to Test local package I run "bun install -g ." it throws this error "panic(main thread): Internal Error: Do not pass posix paths to Windows APIs, was given '\package.json'. Please open an issue on GitHub with a reproduction. oh no: Bun has crashed. This indicates a bug in Bun, not your code."
Relevant log output
Stack Trace (bun.report)
Bun v1.1.36 (
ededc16
) on windows x86_64 [AddCommand]panic: Internal Error: Do not pass posix paths to Windows APIs, was given '\package.json'. Please open an issue on GitHub with a reproduction.
string_immutable.zig:2110
:assertIsValidWindowsPath
sys.zig:1015
:openFileAtWindowsNtPath
sys.zig:1158
:openFileAtWindowsT
interpreter.zig:12370
:openat
install.zig:1009
:isNull
install.zig:12820
:installPackageWithNameAndResolution
install.zig:13248
:installPackage
install.zig:13739
:installPackages
install.zig:14540
:installWithManager
install.zig:10675
:updatePackageJSONAndInstallWithManagerWithUpdates
Features: lockfile_migration_from_package_lock
Sentry Issue: BUN-7ZF