MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / writeUpdateCheckCache

Function writeUpdateCheckCache

src/upgrade/update-check.ts:108–115  ·  view source on GitHub ↗
(dir: string, cache: UpdateCheckCacheFile)

Source from the content-addressed store, hash-verified

106}
107
108function writeUpdateCheckCache(dir: string, cache: UpdateCheckCacheFile): void {
109 try {
110 fs.mkdirSync(dir, { recursive: true });
111 fs.writeFileSync(updateCheckCachePath(dir), JSON.stringify(cache));
112 } catch {
113 /* fail silent — a read-only home dir must not break the server */
114 }
115}
116
117/**
118 * Rebuild a canonical `vX.Y.Z[-pre]` tag from the PARSED semver fields, or

Callers 1

refreshUpdateCheckFunction · 0.85

Calls 1

updateCheckCachePathFunction · 0.85

Tested by

no test coverage detected