-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Labels
bugSomething isn't workingSomething isn't workingbun installSomething that relates to the npm-compatible clientSomething that relates to the npm-compatible client
Description
What version of Bun is running?
1.2.17
What platform is your computer?
aarch64-darwin
What steps can reproduce the bug?
- Use
bun install --yarn
on a project with dependencies that use workspace or catalog protocols. I encountered this in sst/opencode, examples are also taken from that repo. - Copy
yarn.lock
into an empty directory. - Init the empty directory with
yarn init
- Install dependencies with
yarn install --frozen-lockfile
- Observe the error output. The line numbers are messed up. However, searching for packages with
@workspace:*
and@catalog:
and adding quotes around unquoted occurrences fixes the lockfile.
What is the expected behavior?
Dependencies with special characters or scoped names should be properly quoted as strings. For example:
ai@catalog:*:
should appear as"ai@catalog:*":
opencode@workspace:*:
should appear as"opencode@workspace:*:":
What do you see instead?
The dependencies are output without quotes, for example:
ai@catalog::
opencode@workspace:*:
Additional information
I don't have any experience with typescript/bun/yarn. So I'm not sure if catalog:
and workspace:*
are even supported by yarn
.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingbun installSomething that relates to the npm-compatible clientSomething that relates to the npm-compatible client