Skip to content

Commit 09a8e0f

Browse files
committed
fix: keep bundled CLI backend fallback stable (#64242)
1 parent beaff3c commit 09a8e0f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/plugins/setup-registry.runtime.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@ function loadSetupRegistryRuntime(): SetupRegistryRuntimeModule | null {
5454
}
5555

5656
export function resolvePluginSetupCliBackendRuntime(params: { backend: string }) {
57+
const normalized = normalizeProviderId(params.backend);
5758
const runtime = loadSetupRegistryRuntime();
5859
if (runtime) {
59-
return runtime.resolvePluginSetupCliBackend(params);
60+
const resolved = runtime.resolvePluginSetupCliBackend(params);
61+
if (resolved) {
62+
return resolved;
63+
}
6064
}
61-
const normalized = normalizeProviderId(params.backend);
6265
return resolveBundledSetupCliBackends().find(
6366
(entry) => normalizeProviderId(entry.backend.id) === normalized,
6467
);

0 commit comments

Comments
 (0)