index out of bounds on second add with --trust #16836
Labels
bun install
Something that relates to the npm-compatible client
confirmed bug
We can reproduce this issue
crash
An issue that could cause a crash
windows
An issue that is known to occur on Windows
How can we reproduce the crash?
steps:
bun init
bun add --trust 3d-core-raub
bun add --trust 3d-core-raub
Relevant log output
Stack Trace (bun.report)
Bun v1.1.42 (
50eec00
) on windows x86_64 [AddCommand]panic: index out of bounds: index 3, len 3
semver.zig:461
:slice
install.zig:10838
:updatePackageJSONAndInstallWithManagerWithUpdates
install.zig:10372
:updatePackageJSONAndInstall
install.zig:9087
:updatePackageJSONAndInstallCatchError
cli.zig:1780
:start
cli.zig:64
:start
main.zig:49
:main
exe_common.inl:78
:invoke_main
Features: binlinks, lifecycle_scripts, spawn
The text was updated successfully, but these errors were encountered: