[Bazel CI] ERROR: rules_rust_prost: implicit attribute defaults to @bazel_tools//tools/cpp:empty, fails single-file check (08-grpc-client-server)

Aperta
#710 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@deepalak56 ci sta già lavorando.

Dal 21/10/2026.

  • #719 di @deepalak56 — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5787#01a0eb5b-116d-49e9-a0e3-ef8d289bb8b9

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

Lingua principale
Starlark
Stelle
958
Fork
582
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bazelbuild/examples

Tutte le issue di bazelbuild/examples

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.