Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,022 2 bình luận 1 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@hemasekhar-p đang làm issue này rồi.

Từ ngày 2/4/2026.

  • #1193 của @YuqiGuo105 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Java
Star
1.7k
Fork
431
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
46

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của google/adk-java

Tất cả issue của google/adk-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.