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
bun install
resolving to wrong major version of beta packages
#5691
Comments
I'm also experiencing this |
Same happening on Bun 1.0.4 for me with various packages, including packages from our private NPM repo. Installing a package pinned to a specific version and it fetches something from 2 years ago. Any ideas? |
@dylan-conway is working on this |
@Jarred-Sumner @dylan-conway I just built bun from source and it looks like this is still a problem — even in the test repo I provided above. I suspect it's more related to this area of the semver handling which are currently commented out as I believe these aren't handled correctly yet: Lines 2277 to 2279 in 4a2e157
|
Fixed as of v1.0.6 |
What version of Bun is running?
1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
The following
package.json
resolves to the wrong major version when installing via bun:After installation it'll install
8.0.0-alpha.2
rather than7.22.19
. This also applies to any dependents because it's using 8.x to resolve dependencies.Quick repro:
What is the expected behavior?
I would expect bun to resolve the version(s) to
7.22.19
(or at least any 7.x version) rather than 8.x.What do you see instead?
It resolves the package and its dependents to 8.x versions.
Additional information
I (manually) cleared the bun install cache and did installs using
--force
as well and the problem persisted so it doesn't appear that this is cache related.The text was updated successfully, but these errors were encountered: