Skip to content

Commit 897ae15

Browse files
fix: create ~/.gemini directory before CLI invocation to prevent ENOENT
Gemini CLI 0.33.0 writes a user-level project registry at ~/.gemini/projects.json during cleanup. The atomic write fails with ENOENT if ~/.gemini/ doesn't exist. Add mkdir -p before the first gemini command to ensure the directory is present.
1 parent 8d07671 commit 897ae15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ runs:
275275
npm run bundle
276276
npm install --silent --no-audit --prefer-offline --global .
277277
fi
278+
mkdir -p "${HOME}/.gemini"
278279
echo "Verifying installation:"
279280
if command -v gemini >/dev/null 2>&1; then
280281
gemini --version || echo "Gemini CLI installed successfully (version command not available)"

0 commit comments

Comments
 (0)