Skip to content

fix(cli): support Volta auto updates#27032

Closed
pragnyanramtha wants to merge 1 commit into
google-gemini:mainfrom
Reputation-DAO:fix-volta-auto-update-26573-rebased
Closed

fix(cli): support Volta auto updates#27032
pragnyanramtha wants to merge 1 commit into
google-gemini:mainfrom
Reputation-DAO:fix-volta-auto-update-26573-rebased

Conversation

@pragnyanramtha
Copy link
Copy Markdown

Summary

Fixes the auto-updater loop for Gemini CLI installations managed by Volta by detecting Volta-managed executable paths and using Volta's install command instead of falling back to npm.

Details

  • Adds PackageManager.VOLTA to installation detection.
  • Detects Volta from VOLTA_HOME as well as common .volta, volta/bin, and volta/tools paths.
  • Returns volta install @google/gemini-cli@latest for global Volta installs.
  • Keeps standalone binary detection ahead of path-based package manager detection.

Related Issues

Fixes #26573

How to Validate

  • npm run test --workspace packages/cli -- installationInfo.test.ts
    • Expected: src/utils/installationInfo.test.ts passes 20/20 tests and the package posttest build completes.
  • git diff --check origin/main...HEAD

Note: an initial attempt with --runInBand was rejected because Vitest does not support that Jest flag; the command above is the successful validation run.

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any): none
  • Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • Linux
      • npm run
      • npx
      • Docker

Windows validation is covered by the VOLTA_HOME Windows-path unit test; Linux/macOS-style validation is covered by the .volta/tools path unit test.

@gemini-cli gemini-cli Bot added priority/p2 Important but can be addressed in a future release. area/core Issues related to User Interface, OS Support, Core Functionality labels May 14, 2026
@Reputation-DAO Reputation-DAO closed this by deleting the head repository May 15, 2026
@pragnyanramtha
Copy link
Copy Markdown
Author

Closing this draft because the branch was accidentally published from the Reputation-DAO organization fork. Replacement from my personal fork: #27103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Issues related to User Interface, OS Support, Core Functionality priority/p2 Important but can be addressed in a future release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto Updater doesn't work when Gemini is installed via Volta

2 participants