Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Hardcoded `System.getenv()` calls prevent programmatic configuration of parameters

未关闭
#1,022 2 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@hemasekhar-p 已经在做这个了。

开始于 2026年4月2日。

  • #1193 来自 @YuqiGuo105 —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

needs review

The Google ADK currently relies strictly on System.getenv() to read critical configuration parameters, specifically GOOGLE_GENAI_USE_VERTEXAI, GOOGLE_CLOUD_PROJECT, and GOOGLE_CLOUD_LOCATION.

This creates a significant architectural friction point for modern Java applications, such as Spring Boot on Java 17+. In these environments, configurations are managed internally via files like application.yaml rather than static OS-level environment variables. Because Java's System.getenv() reads an immutable OS map, we are completely blocked from programmatically injecting or wiring these values from our application's configuration at runtime.

This forces developers to rely on external CI/CD deployment wrappers or unsafe JVM reflection hacks just to pass standard configuration values into the SDK.

主要语言
Java
星标
1.7k
派生
433
平均合并
3 天 9 小时
30 天内合并 PR
46

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

google/adk-java 的其他 Issue

查看 google/adk-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。