-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] turbo prune removes pnpmfileChecksum from lockfile #9947
Labels
Comments
As a temporary fix, I'm running the following script in my dockerfile after the call to if ! grep pnpmfileChecksum out/json/pnpm-lock.yaml > /dev/null; then
grep pnpmfileChecksum pnpm-lock.yaml >> out/json/pnpm-lock.yaml
fi It unblocks me for now. |
chris-olszewski
added a commit
that referenced
this issue
Feb 13, 2025
### Description Closes #9947 ### Testing Instructions ``` [0 olszewski@macbookpro] /tmp/pnpmcjs $ turbo_dev --skip-infer prune web turbo 2.4.2 Generating pruned monorepo for web in /private/tmp/pnpmcjs/out - Added @repo/eslint-config - Added @repo/typescript-config - Added @repo/ui - Added web [0 olszewski@macbookpro] /tmp/pnpmcjs $ cd out [0 olszewski@macbookpro] /tmp/pnpmcjs/out $ cp ../.pnpmfile.cjs ./ [0 olszewski@macbookpro] /tmp/pnpmcjs/out $ pnpm i --frozen-lockfile Scope: all 5 workspace projects Lockfile is up to date, resolution step is skipped Packages: +452 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 452, reused 452, downloaded 0, added 452, done devDependencies: + prettier 3.5.0 + turbo 2.4.2 + typescript 5.7.3 Done in 3.4s [0 olszewski@macbookpro] /tmp/pnpmcjs/out $ rg 'pnpmfileChecksum' pnpm-lock.yaml 5:pnpmfileChecksum: kpphteni3rdug2puxczjfk5mle ```
joshnuss
pushed a commit
to joshnuss/turborepo
that referenced
this issue
Feb 15, 2025
### Description Closes vercel#9947 ### Testing Instructions ``` [0 olszewski@macbookpro] /tmp/pnpmcjs $ turbo_dev --skip-infer prune web turbo 2.4.2 Generating pruned monorepo for web in /private/tmp/pnpmcjs/out - Added @repo/eslint-config - Added @repo/typescript-config - Added @repo/ui - Added web [0 olszewski@macbookpro] /tmp/pnpmcjs $ cd out [0 olszewski@macbookpro] /tmp/pnpmcjs/out $ cp ../.pnpmfile.cjs ./ [0 olszewski@macbookpro] /tmp/pnpmcjs/out $ pnpm i --frozen-lockfile Scope: all 5 workspace projects Lockfile is up to date, resolution step is skipped Packages: +452 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 452, reused 452, downloaded 0, added 452, done devDependencies: + prettier 3.5.0 + turbo 2.4.2 + typescript 5.7.3 Done in 3.4s [0 olszewski@macbookpro] /tmp/pnpmcjs/out $ rg 'pnpmfileChecksum' pnpm-lock.yaml 5:pnpmfileChecksum: kpphteni3rdug2puxczjfk5mle ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Verify canary release
Link to code that reproduces this issue
N/A
Which canary version will you have in your reproduction?
2.4.1
Enviroment information
Expected behavior
When running
turbo prune
on a pnpm monorepo, the output should include apnpm-lock.yaml
that allows runningpnpm i --frozen-lockfile
, even if there is a.pnpmfile.cjs
file and apnpmfileChecksum
within the original lockfile.Actual behavior
pnpm prune
generates a partial lockfile that is missingpnpmfileChecksum
, resulting inpnpm i --frozen-lockfile
failing to run.To Reproduce
.pnpmfile.cjs
file to the pnpm projectpnpm prune xxx --docker
pnpmfileChecksum
in the output's lockfileAdditional context
No response
The text was updated successfully, but these errors were encountered: