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

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

Open
1 task done
MarArMar opened this issue Aug 25, 2024 · 1 comment
Open
1 task done

Comments

@MarArMar
Copy link

MarArMar commented Aug 25, 2024

Verify canary release

  • 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 MarArMar added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels Aug 25, 2024
@chris-olszewski chris-olszewski added needs: champion and removed kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage labels Aug 26, 2024
@chris-olszewski
Copy link
Member

This is blocked by oven-sh/bun#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 chris-olszewski added the area: prune turbo prune label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants