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

Function releaseWindowsBinaryLock

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

Source from the content-addressed store, hash-verified

327}
328
329function releaseWindowsBinaryLock(lock) {
330 const owner = readBinaryLockOwner(lock.lockPath);
331 if (!owner || owner.token !== lock.token || owner.pid !== process.pid) {
332 throw new Error('Windows package-cache publication lock ownership changed');
333 }
334 fs.unlinkSync(path.join(lock.lockPath, 'owner.json'));
335 fs.rmdirSync(lock.lockPath);
336}
337
338function windowsBinaryReady(destDir, verifier = verifyCandidate) {
339 const binary = path.join(destDir, WINDOWS_BINARY_NAME);

Callers 1

Calls 1

readBinaryLockOwnerFunction · 0.85

Tested by

no test coverage detected