mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
Fix detection of bun as package manager (#17462)
Co-authored-by: Sehoon Shon <sshon@google.com>
This commit is contained in:
@@ -233,7 +233,7 @@ describe('getInstallationInfo', () => {
|
||||
});
|
||||
|
||||
it('should detect global bun installation', () => {
|
||||
const bunPath = `/Users/test/.bun/bin/gemini`;
|
||||
const bunPath = `/Users/test/.bun/install/global/node_modules/@google/gemini-cli/dist/index.js`;
|
||||
process.argv[1] = bunPath;
|
||||
mockedRealPathSync.mockReturnValue(bunPath);
|
||||
mockedExecSync.mockImplementation(() => {
|
||||
|
||||
@@ -142,7 +142,7 @@ export function getInstallationInfo(
|
||||
updateMessage: 'Running via bunx, update not applicable.',
|
||||
};
|
||||
}
|
||||
if (realPath.includes('/.bun/bin')) {
|
||||
if (realPath.includes('/.bun/install/global')) {
|
||||
const updateCommand = 'bun add -g @google/gemini-cli@latest';
|
||||
return {
|
||||
packageManager: PackageManager.BUN,
|
||||
|
||||
Reference in New Issue
Block a user