microsoft/typescript-go · error
Some files failed to sign:\n
Error message
Some files failed to sign:\n
What it means
After signing, outputs are verified (hashes etc.); files that fail verification are collected into a failures list and reported together in one aggregate error at the end of the signing run.
Source
Thrown at Herebyfile.mjs:1458
}
else {
failures.push(message);
continue;
}
}
if (src === dst) {
console.log(`Signed ${src}`);
}
else {
console.log(`Signed ${src} -> ${dst}`);
}
console.log(` sha256: ${dstHash}`);
}
}
if (failures.length) {
throw new Error("Some files failed to sign:\n" + failures.map(f => " - " + f).join("\n"));
}
}
/**
* @param {string} src
* @param {string} dest
* @param {(p: string) => boolean} [filter]
*/
function cpRecursive(src, dest, filter) {
return fs.promises.cp(src, dest, {
recursive: true,
filter: filter ? src => filter(src.replace(/\\/g, "/")) : undefined,
});
}
/**
* @param {string} src
* @param {string} dest
View on GitHub (pinned to 1bcfa18d79)
Solutions
- Read the per-file bullet lines in the error to see exactly which files failed and why
- Fix the root cause (auth, disk, service availability) and re-run the signing task
- If transient, retry the signing step, then verify sha256 hashes of the outputs manually
Defensive patterns
Strategy: retry
Try / catch
try { await signAll(files); } catch (e) { if (/Some files failed to sign/.test(e.message)) { log the failure list; await delay(backoffMs); return signAll(files); // signing is idempotent per file } throw e; } Prevention
- Capture the per-file failure bullets before retrying so root causes are not lost
- Verify sha256 hashes of signed outputs as a separate post-step
- Exclude signing output directories from antivirus scanning on Windows
When it happens
Trigger: Signing-service errors, partially written outputs, post-sign hash mismatches, or unreadable signed files add entries to failures and trigger this error.
Common situations: Transient signing-service/network failures; code-signing auth problems; antivirus or post-processing modifying files after signing on Windows.
Related errors
- Source file does not exist: ${src}
- Signed file has no macOS entitlements: ${filePath}
- Signed file is missing macOS entitlement '${entitlement}': $
- This task should not be run in non-release builds.
- Unknown cert: ${cert}
AI-assisted analysis of microsoft/typescript-go@1bcfa18d79 (2026-08-16).
Data as JSON: /api/errors/20091b7a60abf599.
Report an issue: GitHub.