[Bazel CI] ERROR: rules_rust_prost: implicit attribute defaults to @bazel_tools//tools/cpp:empty, fails single-file check (08-grpc-client-server)
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 64/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- build-system, ci-cd
调研方向
Start with the CI log and examples/rust-examples/08-grpc-client-server/proto_bindings/BUILD.bazel, especially the proto_bindings target involved in the single-file check. Reproduce the failure using the documented repository reset, USE_BAZEL_VERSION value, and bazel build --config=remote //... command. Done means the grpc client-server example and the full build complete successfully on the reported platforms.
由索引模型根据 Issue 内容生成。
描述
Platform: Ubuntu, MacOs.
Logs:
(04:11:09) ERROR: /var/lib/buildkite-agent/builds/bk-docker-r9mr/bazel-org-repo-root/examples/rust-examples/08-grpc-client-server/proto_bindings/BUILD.bazel:6:14: in (an implicit dependency) attribute of @@rules_rust_prost+//private:prost.bzl%rust_prost_aspect aspect on proto_library rule //proto_bindings:proto_bindings: '@@bazel_tools//tools/cpp:empty' must produce a single file. Since this rule was created by the macro 'proto_library', the error might have been caused by the macro implementation
--
| (04:11:09) ERROR: Analysis of target '//proto_bindings:proto_bindings' (config: 46994db) failed
| (04:11:09) ERROR: Analysis of target '//grpc_server:demo_tests_tests/demo_tests_test' failed; build aborted: Analysis failed
| (04:11:09) INFO: Elapsed time: 34.373s
| (04:11:09) INFO: 0 processes.
| (04:11:09) ERROR: Build did NOT complete successfully
| (04:11:10) INFO: Streaming build results to: https://btx.cloud.google.com/invocations/7221e201-d224-499f-ac50-d5b48017d89d
| bazel build failed with exit code 1
| 🚨 Error: The command exited with status 1
Culprit: Commit 12b6ea57
Steps:
git clone https://github.com/bazelbuild/examples.git
git reset 45bfd9d9b3d1b8e940890aa90a60483e8179331d --hard
export USE_BAZEL_VERSION=aadedf39b3cb71f95332d47c228b2432df144f35
bazel build --config=remote //...
CC Greenteam @SalmaSamy
- 主要语言
- Starlark
- 星标
- 958
- 派生
- 582
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bazelbuild/examples 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 30/100
bazelbuild/examples#722 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 48/100
bazelbuild/examples#721 ·
-
难度 4/5 3-5 天 新手友好度 30/100
bazelbuild/examples#650 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
bazelbuild/examples#642 ·
-
难度 2/5 1-3 小时 新手友好度 30/100
bazelbuild/examples#641 · 1 个 reaction ·
查看 bazelbuild/examples 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
bazelbuild/apple_support#707 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
-
out-of-date
难度 2/5 1-3 小时 新手友好度 68/100
CachyOS/CachyOS-PKGBUILDS#2232 ·
维护者通常 1 天内回复
-
blast/large refactor risk/low spend-dem
难度 2/5 1-3 小时 新手友好度 68/100
chriskelly/MusicWall#87 · 2 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
neilotoole/sq#1503 ·
维护者通常 1 天内回复