googleapis / googleapis/google-cloud-java
[sdk-platform-java] The order of entries in generated `gapic_metadata.json` and `package-info.java` should be deterministic
未关闭
priority: p2
type: feature request
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 1.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 157
描述
Currently, the order entries in `gapic_metadata.json` and `package-info.java` is the same as the corresponding proto files in `BUILD.bazel`.
However, the proto files can be reordered manually which leads to undeterministic output in `gapic_metadata.json` and `package-info.java`.
The entries should be in a deterministic order (e.g., alphabetic order), regardless the order of protos.
贡献指南
调研方向
首先跟踪 BUILD.bazel 中的 proto 条目如何用于生成 gapic_metadata.json 和 package-info.java。验证重新排列 proto 文件时当前输出是否会发生变化,然后确认无论 BUILD.bazel 中的顺序如何,这两个生成文件都保持相同的确定性顺序。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100