8000 Explicitly ignore `ERR_PNPM_ERR_PNPM_TARBALL_INTEGRITY ` · Issue #8578 · pnpm/pnpm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Explicitly ignore ERR_PNPM_ERR_PNPM_TARBALL_INTEGRITY  #8578
Open
@SebastienGllmt

Description

@SebastienGllmt

Contribution

Describe the user story

Using a tool like Verdaccio to manage packages locally helps a lot for local testing. My flow often looks like this:

  1. Make some changes to project A
  2. Publish a local-only version of project A to a local registry using Verdaccio
  3. Update project B to use the new version of A published in step (2)

and I iterate on this loop until things compile and the code feels good.

Note: I do NOT want to have to bump the version of A every single time I iterate. It gets messy, causes conflicts if I push my branch, and in general it's a lot of busy work

However, if I keep the exact same version number, I get  ERR_PNPM_TARBALL_INTEGRITY  which causes pnpm install to take a minute to install everything as it has to exhaust the retry count

 WARN  GET http://localhost:4873/package-A.tgz error (ERR_PNPM_TARBALL_INTEGRITY). Will 
5B5F
retry in 10 seconds. 2 retries left.

 WARN  GET http://localhost:4873/package-A.tgz error (ERR_PNPM_TARBALL_INTEGRITY). Will retry in 1 minute. 1 retries left.

 WARN  Got unexpected checksum for "http://localhost:4873/package-A.tgz". Wanted "sha512-...". Got "sha512-...".

 ERR_PNPM_TARBALL_INTEGRITY  The lockfile is broken! A full installation will be performed in an attempt to fix it

Describe the solution you'd like

I want an option to just force the installation of the new package even if the sha512 differs without having to wait for all the retries

I tried --fix-lock and --force, and neither of them seem to give me what I want

Describe the drawbacks of your solution

This option could hide a case where a package actually differs in its hash due to a bug, although unlikely

Describe alternatives you've considered

https://github.com/orgs/verdaccio/discussions/4866

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0