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 patch fails on scoped packages (e.g. @org/pkg) #11681

Open
hamlim opened this issue Jun 7, 2024 · 1 comment
Open

bun patch fails on scoped packages (e.g. @org/pkg) #11681

hamlim opened this issue Jun 7, 2024 · 1 comment
Assignees
Labels
bug Something isn't working bun patch

Comments

@hamlim
Copy link

hamlim commented Jun 7, 2024

What version of Bun is running?

1.1.13-canary.1+386bc212b

What platform is your computer?

Darwin 23.5.0 arm64 arm

What steps can reproduce the bug?

  • Init new project (bun init)
  • Install a scoped package, e.g. @contentlayer/cli
  • (Ensure you're on a version of Bun with bun patch support, e.g. bun upgrade --canary)
  • Run bun patch @contentlayer/cli
  • See error

Example repo: https://github.com/hamlim/bun-scoped-pkg-patch-bug

What is the expected behavior?

bun patch works as it does with a "plain" package name, e.g. bun patch react

What do you see instead?

bun patch @contentlayer/[email protected]
[0.49ms] ".env"
bun patch v1.1.13-canary.1 (386bc212)

[477.00ms] done

error: could not find package: @contentlayer/[email protected]

Additional information

No response

@hamlim hamlim added bug Something isn't working needs triage labels Jun 7, 2024
@hamlim hamlim changed the title bun patch fails on scoped packages (e.g. @org/pkg) bun patch fails on scoped packages (e.g. @org/pkg) Jun 7, 2024
@7f8ddd
Copy link
Contributor

7f8ddd commented Jun 8, 2024

True
image

zackradisic added a commit that referenced this issue Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun patch
Projects
None yet
Development

No branches or pull requests

4 participants