Integrity check failed for dependency while building

Hi,
After upgrading a dependency, my builds have started to fail due to this error (complete log below):

3:11:07 PM: yarn install v1.17.0
3:11:07 PM: [1/4] Resolving packages...
3:11:08 PM: [2/4] Fetching packages...
3:11:31 PM: error Integrity check failed for "regraph" (computed integrity doesn't match our records, got "sha1-pklXn7uyhlPv3iuu1d+xQSFWmm8=")

Building works fine locally.
I suppose this is a problem with the dependency itself. I have tried to re-deploy clearing the cache with no effect. I would like to check there is nothing in Netlify configuration or internal process that could be causing this before contacting the dependency provider.
Thanks!

Full deploy log:

4:19:58 PM: Build ready to start
4:20:00 PM: build-image version: f72dfd0e8463dbecb2fd70e9fce5154c4f652a32
4:20:00 PM: build-image tag: v3.3.11
4:20:00 PM: buildbot version: 0491622b534ec97319921a4d5a5618bf0cab9974
4:20:04 PM: Fetching cached dependencies
4:20:04 PM: Starting to download cache of 320.2MB
4:20:06 PM: Finished downloading cache in 1.693826506s
4:20:06 PM: Starting to extract cache
4:20:20 PM: Finished extracting cache in 13.902710058s
4:20:20 PM: Finished fetching cache in 15.662467405s
4:20:20 PM: Starting to prepare the repo for build
4:20:20 PM: Preparing Git Reference pull/54/head
4:20:22 PM: Starting build script
4:20:22 PM: Installing dependencies
4:20:22 PM: Started restoring cached node version
4:20:28 PM: Finished restoring cached node version
4:20:29 PM: v10.20.1 is already installed.
4:20:29 PM: Now using node v10.20.1 (npm v6.14.4)
4:20:30 PM: Attempting ruby version 2.6.2, read from environment
4:20:31 PM: Using ruby version 2.6.2
4:20:31 PM: Using PHP version 5.6
4:20:31 PM: 5.2 is already installed.
4:20:31 PM: Using Swift version 5.2
4:20:31 PM: Started restoring cached node modules
4:20:31 PM: Finished restoring cached node modules
4:20:31 PM: Started restoring cached yarn cache
4:20:31 PM: Finished restoring cached yarn cache
4:20:32 PM: Installing NPM modules using Yarn version 1.17.0
4:20:33 PM: yarn install v1.17.0
4:20:33 PM: [1/4] Resolving packages...
4:20:34 PM: [2/4] Fetching packages...
4:20:55 PM: error Integrity check failed for "regraph" (computed integrity doesn't match our records, got "sha1-pklXn7uyhlPv3iuu1d+xQSFWmm8=")
4:20:55 PM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
4:20:59 PM: Error during Yarn install
4:20:59 PM: Error running command: Build script returned non-zero exit code: 1
4:20:59 PM: Failing build: Failed to build site
4:21:00 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
4:21:00 PM: Finished processing build request in 1m0.374196987s

hmm, how annoying. I am assuming that this is an issue with some repo corruption on regraph’s side - which, if they pushed a bad deploy, would explain why this is working locally (i am assuming you didn’t clear your node modules folder and ran npm install again?)

You posted this a day ago, is it possibly working now?

Thanks for your comment!
I have just managed to fix the issue by removing the yarn cache (somehow the system ended up with a mismatch between the lib version and its SHA1). So in the end it was nothing to do with netlify (as I suspected!).

Thanks again,
M;

1 Like