gemini-cli
gemini-cli copied to clipboard
Bun package manager detection fails for global installs
What happened?
Bun package manager detection fails in installationInfo.ts due to incorrect path checking.
When installed via bun add -g @google/gemini-cli, the detection logic checks:
if (realPath.includes('/.bun/bin'))
However, fs.realpathSync() resolves to:
/home/user/.bun/install/global/node_modules/@google/gemini-cli/dist/index.js
Not /.bun/bin/gemini. The check fails and defaults to npm.
What did you expect to happen?
Bun installations should be detected correctly and use bun add -g @google/gemini-cli@latest for updates
Client information
CLI Version: 0.18.0 Git Commit: 7beccfa03 OS: linux
Login information
No response
Anything else we need to know?
No response
Fyi @galz10
I just noticed the package manager detection also fails for pnpm and pnpx!