{"record":{"id":"c2e4f45e445036f9","repo":"oven-sh/bun","slug":"integritycheckfailed","errorCode":null,"errorMessage":"IntegrityCheckFailed","messagePattern":"IntegrityCheckFailed","errorType":"exception","errorClass":"bun_install::Error","httpStatus":null,"severity":"error","filePath":"src/install/error.rs","lineNumber":151,"sourceCode":"    #[error(\"EmptyPackageField\")]\n    EmptyPackageField,\n    #[error(\"InvalidDescriptionField\")]\n    InvalidDescriptionField,\n    #[error(\"InvalidUrlField\")]\n    InvalidUrlField,\n    #[error(\"MissingLevelField\")]\n    MissingLevelField,\n    #[error(\"InvalidLevelField\")]\n    InvalidLevelField,\n    #[error(\"InvalidLevelValue\")]\n    InvalidLevelValue,\n    #[error(\"Missing global bin directory: try setting $BUN_INSTALL\")]\n    MissingGlobalBinDirectoryTrySettingBUNINSTALL,\n    #[error(\"InvalidURL\")]\n    InvalidURL,\n    #[error(\"Fail\")]\n    Fail,\n    #[error(\"IntegrityCheckFailed\")]\n    IntegrityCheckFailed,\n    #[error(\"RepositoryNotFound\")]\n    RepositoryNotFound,\n    #[error(\"DebugTextLockfileRoundTrip\")]\n    DebugTextLockfileRoundTrip,\n    #[error(\"NoPackage\")]\n    NoPackage,\n    #[error(\"BrokenPipe\")]\n    BrokenPipe,\n    #[error(\"WriteFailed\")]\n    WriteFailed,\n    #[error(\"InvalidCharacter\")]\n    InvalidCharacter,\n    #[error(\"InvalidLockfile\")]\n    InvalidLockfile,\n    #[error(\"Unexpected lockfile version\")]\n    UnexpectedLockfileVersion,\n    #[error(\"Outdated lockfile version\")]","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/install/error.rs#L133-L169","documentation":"A package's contents failed the integrity check — the hash of the downloaded/cached tarball does not match the integrity value recorded in the lockfile. It fires during extraction when verifying package authenticity.","triggerScenarios":"Thrown at src/install/error.rs:151 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Clear the cached package and re-download (rm -rf ~/.bun/install/cache/<pkg>)","Verify the lockfile's integrity hashes were not hand-edited or corrupted","If using a proxy/mirror, confirm it serves unmodified tarballs"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}