Introduce GEMINI_CLI_HOME for strict test isolation (#15907)

This commit is contained in:
N. Taylor Mullen
2026-01-06 20:09:39 -08:00
committed by GitHub
parent a26463b056
commit 7956eb239e
54 changed files with 455 additions and 148 deletions

View File

@@ -11,7 +11,7 @@ import {
EXTENSION_SETTINGS_FILENAME,
EXTENSIONS_CONFIG_FILENAME,
} from './variables.js';
import { Storage } from '@google/gemini-cli-core';
import { Storage, homedir } from '@google/gemini-cli-core';
export class ExtensionStorage {
private readonly extensionName: string;
@@ -36,7 +36,7 @@ export class ExtensionStorage {
}
static getUserExtensionsDir(): string {
return new Storage(os.homedir()).getExtensionsDir();
return new Storage(homedir()).getExtensionsDir();
}
static async createTmpDir(): Promise<string> {