MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / releaseWindowsBinaryLock

Function releaseWindowsBinaryLock

pkg/npm/install.js:467–474  ·  view source on GitHub ↗
(lock)

Source from the content-addressed store, hash-verified

465}
466
467function releaseWindowsBinaryLock(lock) {
468 const owner = readBinaryLockOwner(lock.lockPath);
469 if (!owner || owner.token !== lock.token || owner.pid !== process.pid) {
470 throw new Error('Windows package-cache publication lock ownership changed');
471 }
472 fs.unlinkSync(path.join(lock.lockPath, 'owner.json'));
473 fs.rmdirSync(lock.lockPath);
474}
475
476function windowsBinaryReady(destDir, verifier = verifyCandidate) {
477 const binary = path.join(destDir, WINDOWS_BINARY_NAME);

Callers 1

Calls 1

readBinaryLockOwnerFunction · 0.85

Tested by

no test coverage detected