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 link no longer works with version 1.1.5 for packages already installed in node_modules #10558

Open
mangs opened this issue Apr 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mangs
Copy link
Contributor

mangs commented Apr 26, 2024

What version of Bun is running?

1.1.5+b257a3097

What platform is your computer?

Darwin 23.4.0 arm64 arm

What steps can reproduce the bug?

  1. Link a local package with bun link
  2. Navigate to another application that consumes that package
  3. Install that package from NPM: bun install <package>
  4. Link the package with the package already in node_modules: bun link <package>
  5. Get an error message: error: PathAlreadyExists installing @mangs/bun-utils (linking dependency/workspace to node_modules)

What is the expected behavior?

The package links correctly. This workflow has served me well for many previous Bun versions including 1.1.4.

What do you see instead?

An error message:

error: PathAlreadyExists installing @mangs/bun-utils (linking dependency/workspace to node_modules)

Additional information

If I manually delete the package from node_modules with rm -rf node_modules/package before running bun link <package>, the command completes successfully.

@mangs mangs added the bug Something isn't working label Apr 26, 2024
@cherifGsoul
Copy link

The issue seems is when using stable version if ReScript Core and ReScript.
You see the issue with the following

 "dependencies": {
    "@rescript/core": "1.3.0",
    "rescript": "11.1.0",
    "rescript-bun": "0.3.1"
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants