fix(codex): qualify packaged git bash guidance
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -39,7 +39,7 @@ test("#given Windows without Git Bash and auto install skip env #when installing
|
|||||||
"Git Bash is required.",
|
"Git Bash is required.",
|
||||||
"winget install --id Git.Git -e --source winget",
|
"winget install --id Git.Git -e --source winget",
|
||||||
"OMO_CODEX_GIT_BASH_PATH=C:\\path\\to\\bash.exe",
|
"OMO_CODEX_GIT_BASH_PATH=C:\\path\\to\\bash.exe",
|
||||||
"rerun `bunx omo install --platform=codex`",
|
"rerun `bunx --package oh-my-openagent omo install --platform=codex`",
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
}),
|
}),
|
||||||
runCommand: async (command, args, options) => {
|
runCommand: async (command, args, options) => {
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ function missingGitBash(checkedPaths) {
|
|||||||
"Git Bash is required for native Windows Codex profile installs.",
|
"Git Bash is required for native Windows Codex profile installs.",
|
||||||
"Install it with: winget install --id Git.Git -e --source winget",
|
"Install it with: winget install --id Git.Git -e --source winget",
|
||||||
`For a custom install, set ${GIT_BASH_ENV_KEY}=C:\\path\\to\\bash.exe`,
|
`For a custom install, set ${GIT_BASH_ENV_KEY}=C:\\path\\to\\bash.exe`,
|
||||||
"Then rerun `bunx omo install --platform=codex`.",
|
"Then rerun `bunx --package oh-my-openagent omo install --platform=codex`.",
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ test("#given Windows without Git Bash #when resolving #then returns install guid
|
|||||||
assert.equal(result.found, false);
|
assert.equal(result.found, false);
|
||||||
assert.deepEqual(result.checkedPaths, [programFilesGitBash, programFilesX86GitBash]);
|
assert.deepEqual(result.checkedPaths, [programFilesGitBash, programFilesX86GitBash]);
|
||||||
assert.match(result.installHint, /winget install --id Git\.Git -e --source winget/);
|
assert.match(result.installHint, /winget install --id Git\.Git -e --source winget/);
|
||||||
assert.match(result.installHint, /rerun `bunx omo install --platform=codex`/);
|
assert.match(result.installHint, /rerun `bunx --package oh-my-openagent omo install --platform=codex`/);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("#given Windows without Git Bash and winget is allowed #when preparing #then winget runs and resolver retries", async () => {
|
test("#given Windows without Git Bash and winget is allowed #when preparing #then winget runs and resolver retries", async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user