MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / computeScopedDerivedDataPath

Function computeScopedDerivedDataPath

src/utils/derived-data-path.ts:23–31  ·  view source on GitHub ↗
(anchorPath: string, cwd?: string)

Source from the content-addressed store, hash-verified

21}
22
23export function computeScopedDerivedDataPath(anchorPath: string, cwd?: string): string {
24 const resolvedCwd = cwd ?? process.cwd();
25 const resolved = resolvePathFromCwd(anchorPath, resolvedCwd);
26 const name = path.basename(resolved, path.extname(resolved));
27 return path.join(
28 resolveWorkspaceDerivedDataRoot(resolvedCwd),
29 `${name}-${shortWorkspaceHash(resolved)}`,
30 );
31}
32
33export function resolveEffectiveDerivedDataPath(input: DerivedDataPathInput = {}): string {
34 const cwd = input.cwd ?? process.cwd();

Calls 3

resolvePathFromCwdFunction · 0.90
shortWorkspaceHashFunction · 0.90

Tested by 2

displayScopedDerivedDataFunction · 0.72
mockExecutorFunction · 0.72