{"record":{"id":"ad628ec9cd15ccf3","repo":"rust-lang/cargo","slug":"checksum-for-changed-between-lock-files-this","errorCode":null,"errorMessage":"checksum for `{}` changed between lock files\n\nthis could be indicative of a few possible errors:\n\n    * the lock file is corrupt\n    * a replacement source in use (e.g., a mirror) returned a different checksum\n    * the source itself may be corrupt in one way or another\n\nunable to verify that `{0}` is the same as when the lockfile was generated\n","messagePattern":"checksum for `(.+?)` changed between lock files\n\nthis could be indicative of a few possible errors:\n\n    \\* the lock file is corrupt\n    \\* a replacement source in use \\(e\\.g\\., a mirror\\) returned a different checksum\n    \\* the source itself may be corrupt in one way or another\n\nunable to verify that `(.+?)` is the same as when the lockfile was generated\n","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/resolver/resolve.rs","lineNumber":280,"sourceCode":"the existing lock file\n\nthis could be indicative of a few possible situations:\n\n    * the source `{}` supports checksums,\n      but was replaced with one that doesn't\n    * the lock file is corrupt\n\nunable to verify that `{0}` is the same as when the lockfile was generated\n\",\n                        id,\n                        id.source_id()\n                    )\n\n                // If the checksums aren't equal, and neither is None, then they\n                // must both be Some, in which case the checksum now differs.\n                // That's quite bad!\n                } else {\n                    anyhow::bail!(\n                        \"\\\nchecksum for `{}` changed between lock files\n\nthis could be indicative of a few possible errors:\n\n    * the lock file is corrupt\n    * a replacement source in use (e.g., a mirror) returned a different checksum\n    * the source itself may be corrupt in one way or another\n\nunable to verify that `{0}` is the same as when the lockfile was generated\n\",\n                        id\n                    );\n                }\n            }\n        }\n\n        // Be sure to just copy over any unknown metadata.","sourceCodeStart":262,"sourceCodeEnd":298,"githubUrl":"https://github.com/rust-lang/cargo/blob/eb98b54bc9f3c74519f43d066cb3fd02ebc88df0/src/resolver/resolve.rs#L262-L298","documentation":"Error \"checksum for `{}` changed between lock files\n\nthis could be indicative of a few possible errors:\n\n    * the lock file is corrupt\n    * a replacement source in use (e.g., a mirror) returned a different checksum\n    * the source itself may be corrupt in one way or another\n\nunable to verify that `{0}` is the same as when the lockfile was generated\n\" thrown in rust-lang/cargo.","triggerScenarios":"Thrown at src/resolver/resolve.rs:280 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"eb98b54bc9f3c74519f43d066cb3fd02ebc88df0","analyzedAt":"2026-08-11T17:42:36.556Z","contentChangedAt":"2026-08-11T17:42:36.556Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}