turbo
turbo copied to clipboard
"Prune is not supported for Bun" message when trying to generate files for Docker
Verify canary release
- [X] I verified that the issue exists in the latest Turborepo canary release.
Link to code that reproduces this issue
https://github.com/vercel/turborepo/
What package manager are you using / does the bug impact?
npm
What operating system are you using?
Linux
Which canary version will you have in your reproduction?
^2.0.14
Describe the Bug
Following guide : https://turbo.build/repo/docs/guides/tools/docker
Using latest bun stable (v1.1.26)
When I try to use
turbo prune app_name --docker
It raises
× Prune is not supported for Bun
Expected Behavior
It would not have this error
To Reproduce
- Install bun
- Follow this guide to create the reproduction repo : https://turbo.build/repo/docs/guides/tools/docker
- Use
turbo prune app_name --docker
Additional context
Alternatively, you could indicate how to do the same with bun, even if we need to copy files individually
I thought of :
- Having fixed versions in package.json at all times
- Upgrading them manually with ncu
To have the equivalent of a lockfile because all deps are locked by the package.json at all times
This is blocked by https://github.com/oven-sh/bun/issues/11863 as we do not have the capacity to write a parser for the binary lockfile format (especially since it will be replaced by JSON in the future).
oven-sh/bun#11863 has been closed as fixed now :)
Hi @chris-olszewski Is this possible now? Or we have to workaround this?
Hi @chris-olszewski, any updates?
Can I get any update on this issue
Text based lockfiles are now supported and on by default in Bun 1.2 :)
Any update?
bump for turbo repo team
We're really looking forward to this 🙂