Skip to content
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 Package Installer does not support bun.lock, the new lock file standard for Bun (starting v1.2 #547

Open
r4hulp opened this issue Mar 8, 2025 · 0 comments · May be fixed by #548
Open

Comments

@r4hulp
Copy link

r4hulp commented Mar 8, 2025

Describe the bug

Starting from Bun v1.2.0, the default lock file format changed from bun.lockb (binary) to bun.lock (text-based). The current implementation in BunPackageInstallerLifecycleHook only checks for bun.lockb, which means projects using newer versions of Bun will fail the package installation step.

Regression

No response

Steps to reproduce

1. Create a new Aspire project with Bun support
2. Install Bun v1.2.0 or later
3. Run bun install in your project directory (this will create a bun.lock file)
4. Try to run the Aspire project

The application fails to start with the error:

: No bun.lockb file found in {WorkingDirectory}

Expected behavior

The package installer should:

  • Check for either bun.lock (new format) or bun.lockb (legacy format)
  • Continue execution if either file exists
  • Only throw an error if neither lock file is present

Screenshots

No response

IDE and version

VS 2022

IDE version

No response

Nuget packages


Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant