-
-
Notifications
You must be signed in to change notification settings - Fork 937
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
ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE with github alias #6865
Comments
Initial debugging result: Adding |
|
Further investigation leads me to suspect that there are build scripts in |
After injecting a custom pnpm to |
When you install a git-hosted dependency, the dependency is built before it is added to node_modules. The git-hosted dependency is cloned to a temporary directory and its dependencies are installed with either pnpm, npm, or yarn (whichever lockfile is present). The issue is probably the following. When pnpm runs Which creates Maybe we should add an option to runLifecycleHook to disable the creating of the |
@zkochan I think what we should do instead is ignoring the lock file that was found in the package. |
I don't think it is a good idea to ignore the lockfile. If the |
So you want the lockfile inside the package to still have some effect? I think git package should work similar to npm packages. Does pnpm completely ignore lockfiles found inside npm packages and only read from the root lockfile? Or does the lockfiles inside npm packages still have effects? |
No, git-hosted package do not work similarly to packages from the registry. git-hosted package should be built. So their dependencies are installed including dev dependencies and preserving versions found in the lockfile. |
hi @zkochan, sorry I'm a newbie of pnpm, so do you mean that if we use pnpm in our repo, we need to build all git-hosted dependencies manually and put these into node_modules? |
We're using a github alias to use a fork (https://github.com/dumpus-app/dumpus-app/blob/main/package.json#L79). However, in our github action, running
pnpm i --frozen-lockfile
seems to fail with the following error:pnpm version:
latest (
8.6.10
)Code to reproduce the issue:
https://github.com/dumpus-app/dumpus-app/actions/runs/5666697381/job/15353968419
Expected behavior:
Shoult not fail
Actual behavior:
Fails
Additional information:
node -v
prints:16.20.1
The text was updated successfully, but these errors were encountered: