You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Have multiple sub dependencies using different versions of a sub-sub dependency.
Do a lockfile maintenance : rm -rf bun.lock && bun install
What is the expected behavior?
Consistent bun.lock
What do you see instead?
I don't know how to explain the bug, but I've 3 sub-dependencies using theirselves a subdependency named xml-name-validator.
2 of them use v5.0
1 of them uses v4.0
And when I do a lockfile maintenance rm -rf bun.lock && bun install, I'm randomly having bun switching the versions, this is probably due to some parallelism or cache.
So sometimes it hoists v5.0 at top level bun.lock and hoists v4.0 to the sub dependency that is using a downgraded version compared to its siblings using v5.0.
Sometimes it hoists v4.0 at top level bun.lock and hoists v5.0 to the 2 sub dependencies that is using an upgraded version compared to its sibling using v4.0
Maybe I'm skewed by not using --no-cache option and that it sometimes read different caches, or skipping it because some package updates, then when redoing lock file maintenance it uses old cache (not saving new cache after package update?).
Still, with the --no-cache --force, i'm still having inconsistent updates, so it must be caused by random factor such as parallelism.
The text was updated successfully, but these errors were encountered:
Thanks for the bug report. This issue will likely be fixed when #16267 is merged. The pr isn't finished yet, but you can give it a try with bunx bun-pr 16267.
What version of Bun is running?
1.1.45+196621f25
What platform is your computer?
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
rm -rf bun.lock && bun install
What is the expected behavior?
Consistent
bun.lock
What do you see instead?
I don't know how to explain the bug, but I've 3 sub-dependencies using theirselves a subdependency named
xml-name-validator
.v5.0
v4.0
And when I do a lockfile maintenance
rm -rf bun.lock && bun install
, I'm randomly havingbun
switching the versions, this is probably due to some parallelism or cache.So sometimes it hoists
v5.0
at top levelbun.lock
and hoistsv4.0
to the sub dependency that is using a downgraded version compared to its siblings usingv5.0
.Sometimes it hoists
v4.0
at top levelbun.lock
and hoistsv5.0
to the 2 sub dependencies that is using an upgraded version compared to its sibling usingv4.0
Maybe I'm skewed by not using
--no-cache
option and that it sometimes read different caches, or skipping it because some package updates, then when redoing lock file maintenance it uses old cache (not saving new cache after package update?).Still, with the
--no-cache --force
, i'm still having inconsistent updates, so it must be caused by random factor such as parallelism.The text was updated successfully, but these errors were encountered: