Skip to content

Fix Gemini 0.46 npm build#52

Open
adamklein wants to merge 1 commit into
sadjow:mainfrom
adamklein:fix-gemini-0.46-npm-build
Open

Fix Gemini 0.46 npm build#52
adamklein wants to merge 1 commit into
sadjow:mainfrom
adamklein:fix-gemini-0.46-npm-build

Conversation

@adamklein

@adamklein adamklein commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the Gemini CLI 0.46.0 Nix build by keeping optional npm dependencies installed and disabling lifecycle scripts during the npm rebuild phase.

Details

Gemini 0.46.0 now needs optional platform packages during build, notably @esbuild/linux-x64 for bundle:browser-mcp. Using --omit=optional removes that package and causes the build to fail.

buildNpmPackage already runs npm ci --ignore-scripts, but it later runs npm rebuild separately. Adding npmRebuildFlags = [ "--ignore-scripts" ]; keeps rebuild-time lifecycle scripts from triggering the previous @vscode/vsce-sign sandbox/network failure.

Verification

nix build .#gemini-cli
./result/bin/gemini --version
# 0.46.0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant