vercel / turborepo

Build system optimized for JavaScript and TypeScript, written in Rust
https://turbo.build/repo/docs
MIT License
26.06k stars 1.8k forks source link

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

Open MarArMar opened 3 weeks ago

MarArMar commented 3 weeks ago

Verify 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 :

To have the equivalent of a lockfile because all deps are locked by the package.json at all times

chris-olszewski commented 3 weeks ago

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