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

pnpm@7.18.0 fails to install dependencies with absolute file:/path/to/local/version overrides - worked in 7.17.1 #5754

Closed
dominikg opened this issue Dec 5, 2022 · 0 comments · Fixed by #5757

Comments

@dominikg
Copy link

dominikg commented Dec 5, 2022

pnpm version: 7.18.0

Code to reproduce the issue:

create an override to a local checkout with absolute file path:

{
  "devDependencies": {
    "a": "file:/absolute/path/to/a"
  },
  "pnpm": {
    "overrides": {
      "a": "file:/absolute/path/to/a"
    }
  }
}

https://github.com/dominikg/pnpm-718-override-repro

Expected behavior:

installs local override

Actual behavior:

errors with the absolute path appended to cwd

reproductions/pnpm-718-issue/b ❯ pnpm i
 ERR_PNPM_LINKED_PKG_DIR_NOT_FOUND  Could not install from "/home/dominikg/develop/reproductions/pnpm-718-issue/b/home/dominikg/develop/reproductions/pnpm-718-issue/a" as it does not exist.

Additional information:

  • node -v prints: 18.11.0
  • Windows, macOS, or Linux?: linux

this pattern used to work great in vite-ecosystem-ci to provide a local built version of vite to downstream project cis.
relative file:../../ still work in pnpm 7.18 but are not sufficient as we have to be able to apply the override on different nesting levels of monorepo packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant