[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 ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·
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 日以内に返信