Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Investigate Redundant `@com_google_benchmark//:benchmark` Dependency in Bazel Builds

オープン
#15,548 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp

調査の方向性

PR #15543 と、macOS の Bazel CI ビルドで影響を受ける benchmark ターゲットから始めます。それらの依存関係の宣言を、google/benchmark が参照している BUILD.bazel ファイルと比較し、macOS ツールチェーンが benchmark と benchmark_main をどのように解決するかを調査します。原因を文書化し、設定変更によって明示的な依存関係を削除できるかどうかを判断できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

priority: p3 type: cleanup

Pull request #15543 fixed build failures in several benchmark targets on the macOS Bazel CI. The builds were failing because they were missing a direct dependency on @com_google_benchmark//:benchmark, even though they already depended on @com_google_benchmark//:benchmark_main.

While adding the explicit dependency resolves the build errors, it's not clear why this is necessary. According to the google/benchmark BUILD.bazel file, the :benchmark_main target depends on :benchmark and should export the necessary headers and symbols.

This issue affects the macOS Bazel CI builds.

This issue is to track the investigation into the root cause of this behavior:

  1. Why is a direct dependency on @com_google_benchmark//:benchmark required when a dependency on @com_google_benchmark//:benchmark_main already exists?
  2. Why does this issue appear to be specific to the macOS Bazel CI build environment?
  3. Is there a more fundamental issue in how dependencies are being resolved or in the toolchain configuration?

Acceptance Criteria:

  • Understand and document the reason for the seemingly redundant dependency.
  • Determine if a configuration change can remove the need for the explicit dependency on @com_google_benchmark//:benchmark in the benchmark targets.

Reference:

  • PR #15543: fix(bazel): Add missing dependency to benchmark targets
主要言語
C++
スター
659
フォーク
471
平均マージ
1日 10時間
マージ済み PR(30日)
100

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleapis/google-cloud-cpp のほかの issue

googleapis/google-cloud-cpp の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。