Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/gms2/install-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,19 @@ export async function installRuntimeIfNeeded(
return runtimeLocation;
}

// If a runtime is already cached but just missing this module, install the
// module for that exact cached version. Otherwise we could resolve to a
// different "latest" version (e.g. from a different feed) and install the
// module there instead, leaving the runtime we actually picked still
// missing it.
const installVersion: Gms2VersionPartial | undefined = runtimeLocation
? parseRuntimeVersionFromDirName(ctx.path.basename(runtimeLocation))
: version;

// Looks like we need to actually download the runtime!
const { runtimeUrl, completeVersion } = await resolveRuntimeFeed(ctx, {
igorPath,
version,
version: installVersion,
});

// Install into a temporary directory first, then merge into the real
Expand Down
Loading