这是indexloc提供的服务,不要输入任何密码
Skip to content

[pnpm] turbo prune removes pnpmfileChecksum from lockfile #9947

@jlowcs

Description

@jlowcs

Verify canary release

  • I verified that the issue exists in the latest Turborepo 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 a pnpm-lock.yaml that allows running pnpm i --frozen-lockfile, even if there is a .pnpmfile.cjs file and a pnpmfileChecksum within the original lockfile.

Actual behavior

pnpm prune generates a partial lockfile that is missing pnpmfileChecksum, resulting in pnpm i --frozen-lockfile failing to run.

Image

To Reproduce

  1. add a .pnpmfile.cjs file to the pnpm project
  2. run pnpm prune xxx --docker
  3. notice the missing pnpmfileChecksum in the output's lockfile

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions