turbo icon indicating copy to clipboard operation
turbo copied to clipboard

"Prune is not supported for Bun" message when trying to generate files for Docker

Open MarArMar opened this issue 1 year ago • 1 comments

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

  1. Install bun
  2. Follow this guide to create the reproduction repo : https://turbo.build/repo/docs/guides/tools/docker
  3. 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

MarArMar avatar Aug 25 '24 07:08 MarArMar

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).

chris-olszewski avatar Aug 26 '24 16:08 chris-olszewski

oven-sh/bun#11863 has been closed as fixed now :)

krijoh92 avatar Dec 12 '24 14:12 krijoh92

Hi @chris-olszewski Is this possible now? Or we have to workaround this?

ajaykarthikr avatar Dec 16 '24 18:12 ajaykarthikr

Hi @chris-olszewski, any updates?

Niewdanka avatar Jan 21 '25 20:01 Niewdanka

Can I get any update on this issue

guptaashwanee avatar Jan 23 '25 10:01 guptaashwanee

Text based lockfiles are now supported and on by default in Bun 1.2 :)

nicksrandall avatar Jan 24 '25 03:01 nicksrandall

Any update?

XavierGeerinck avatar Feb 14 '25 07:02 XavierGeerinck

bump for turbo repo team

necmettindev avatar Feb 28 '25 17:02 necmettindev

We're really looking forward to this 🙂

eduardofischer avatar Mar 11 '25 15:03 eduardofischer