fix(cli): support Volta auto updates#27032
Closed
pragnyanramtha wants to merge 1 commit into
Closed
Conversation
Author
|
Closing this draft because the branch was accidentally published from the Reputation-DAO organization fork. Replacement from my personal fork: #27103 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
PackageManager.VOLTAto installation detection.VOLTA_HOMEas well as common.volta,volta/bin, andvolta/toolspaths.volta install @google/gemini-cli@latestfor global Volta installs.Related Issues
Fixes #26573
How to Validate
npm run test --workspace packages/cli -- installationInfo.test.tssrc/utils/installationInfo.test.tspasses 20/20 tests and the packageposttestbuild completes.git diff --check origin/main...HEADNote: an initial attempt with
--runInBandwas rejected because Vitest does not support that Jest flag; the command above is the successful validation run.Pre-Merge Checklist
Windows validation is covered by the
VOLTA_HOMEWindows-path unit test; Linux/macOS-style validation is covered by the.volta/toolspath unit test.