Separate persistent mutable state from config
That way, we clearly see which things are not change, and we also clearly see which things are persistent.
This commit is contained in:
@@ -5,7 +5,7 @@ import { spawnSync } from 'child_process';
|
||||
|
||||
export function serverVersion(ctx: Ctx): Cmd {
|
||||
return async () => {
|
||||
const binaryPath = await ensureServerBinary(ctx.config);
|
||||
const binaryPath = await ensureServerBinary(ctx.config, ctx.state);
|
||||
|
||||
if (binaryPath == null) {
|
||||
throw new Error(
|
||||
|
||||
Reference in New Issue
Block a user