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

  1. Read the per-file bullet lines in the error to see exactly which files failed and why
  2. Fix the root cause (auth, disk, service availability) and re-run the signing task
  3. 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

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


AI-assisted analysis of microsoft/typescript-go@1bcfa18d79 (2026-08-16). Data as JSON: /api/errors/20091b7a60abf599. Report an issue: GitHub.