fix(FN-4717): complete Step 4 — align worktrunk source union types
Fusion-Task-Id: FN-4717 Fusion-Task-Lineage: a2533cd8-52c4-43a0-9daf-e0a49745306b
This commit is contained in:
committed by
gsxdsm
parent
3f77bc2534
commit
36645bdb84
@@ -36,7 +36,10 @@ const _worktrunkBinaryCache = new Map<string, { binaryPath: string; resolvedAt:
|
||||
|
||||
export async function getWorktrunkBinary(
|
||||
settings: WorktrunkSettings,
|
||||
): Promise<{ binaryPath: string; source: "override" | "path" | "cached" }> {
|
||||
): Promise<{
|
||||
binaryPath: string;
|
||||
source: "override" | "path" | "cached" | "installed-release" | "installed-cargo";
|
||||
}> {
|
||||
const cacheKey = `${process.env.HOME ?? ""}::${settings.binaryPath ?? ""}`;
|
||||
const cached = _worktrunkBinaryCache.get(cacheKey);
|
||||
if (cached) {
|
||||
|
||||
Reference in New Issue
Block a user