quiet dotenv log message (#2239)

Co-authored-by: Scott Densmore <scottdensmore@mac.com>
This commit is contained in:
Mot 2025-06-27 19:03:20 -07:00 committed by GitHub
parent 2e20effb43
commit ad7839ea4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 10 deletions

10
package-lock.json generated
View File

@ -4334,9 +4334,9 @@
}
},
"node_modules/dotenv": {
"version": "16.5.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.5.0.tgz",
"integrity": "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==",
"version": "16.6.1",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
"integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
"license": "BSD-2-Clause",
"engines": {
"node": ">=12"
@ -11199,7 +11199,7 @@
"@types/update-notifier": "^6.0.8",
"command-exists": "^1.2.9",
"diff": "^7.0.0",
"dotenv": "^16.4.7",
"dotenv": "^16.6.1",
"gaxios": "^6.1.1",
"glob": "^10.4.1",
"highlight.js": "^11.11.1",
@ -11384,7 +11384,7 @@
"@types/glob": "^8.1.0",
"@types/html-to-text": "^9.0.4",
"diff": "^7.0.0",
"dotenv": "^16.4.7",
"dotenv": "^16.6.1",
"gaxios": "^6.1.1",
"glob": "^10.4.5",
"google-auth-library": "^9.11.0",

View File

@ -34,7 +34,7 @@
"@types/update-notifier": "^6.0.8",
"command-exists": "^1.2.9",
"diff": "^7.0.0",
"dotenv": "^16.4.7",
"dotenv": "^16.6.1",
"gaxios": "^6.1.1",
"glob": "^10.4.1",
"highlight.js": "^11.11.1",

View File

@ -297,6 +297,6 @@ function findEnvFile(startDir: string): string | null {
export function loadEnvironment(): void {
const envFilePath = findEnvFile(process.cwd());
if (envFilePath) {
dotenv.config({ path: envFilePath });
dotenv.config({ path: envFilePath, quiet: true });
}
}

View File

@ -34,7 +34,7 @@
"@types/glob": "^8.1.0",
"@types/html-to-text": "^9.0.4",
"diff": "^7.0.0",
"dotenv": "^16.4.7",
"dotenv": "^16.6.1",
"gaxios": "^6.1.1",
"glob": "^10.4.5",
"google-auth-library": "^9.11.0",

View File

@ -52,10 +52,10 @@ if (!geminiSandbox) {
const geminiEnv = join(currentDir, '.gemini', '.env');
const regularEnv = join(currentDir, '.env');
if (existsSync(geminiEnv)) {
dotenv.config({ path: geminiEnv });
dotenv.config({ path: geminiEnv, quiet: true });
break;
} else if (existsSync(regularEnv)) {
dotenv.config({ path: regularEnv });
dotenv.config({ path: regularEnv, quiet: true });
break;
}
currentDir = dirname(currentDir);