Hmbown/CodeWhale · error · NonRetryableError
Checksum mismatch for ${assetName}: expected ${expected}, go
Error message
Checksum mismatch for ${assetName}: expected ${expected}, got ${actual} What it means
Error "Checksum mismatch for ${assetName}: expected ${expected}, got ${actual}" thrown in Hmbown/CodeWhale.
Source
Thrown at npm/codewhale/scripts/install.js:1004
}
return checksums;
}
async function sha256File(filePath) {
const content = await readFile(filePath);
return crypto.createHash("sha256").update(content).digest("hex");
}
async function verifyChecksum(filePath, assetName, checksums) {
const expected = checksums.get(assetName);
if (!expected) {
throw new NonRetryableError(`Checksum manifest is missing ${assetName}`);
}
const actual = await sha256File(filePath);
if (actual !== expected) {
// Bytes are corrupted; another fetch is unlikely to help without a fix
// upstream. Mark non-retryable.
throw new NonRetryableError(
`Checksum mismatch for ${assetName}: expected ${expected}, got ${actual}`,
);
}
}
async function checksumMatches(filePath, assetName, checksums) {
const expected = checksums.get(assetName);
if (!expected) {
throw new NonRetryableError(`Checksum manifest is missing ${assetName}`);
}
const actual = await sha256File(filePath);
return actual === expected;
}
async function loadChecksums(version, repo, options = {}) {
return parseChecksumManifest(await downloadText(checksumManifestUrl(version, repo), options));
}
View on GitHub (pinned to 8880682c63)
When it happens
Trigger: Thrown at npm/codewhale/scripts/install.js:1004 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Hmbown/CodeWhale@8880682c63 (2026-08-16).
Data as JSON: /api/errors/d8f2c6dc0938c234.
Report an issue: GitHub.