Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#15,548 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
cpp
Domínio
build-system, ci-cd

Direção de pesquisa

Comece pelo PR #15543 e pelos alvos de benchmark afetados nos builds de CI do Bazel no macOS. Compare suas declarações de dependências com o arquivo BUILD.bazel referenciado de google/benchmark e investigue como a toolchain do macOS resolve benchmark e benchmark_main. O trabalho estará concluído quando a causa estiver documentada e for determinado se uma alteração de configuração pode remover a dependência explícita.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
C++
Estrelas
660
Forks
479
Merge médio
1d 12h
PRs com merge (30d)
77

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de googleapis/google-cloud-cpp

Todas as issues de googleapis/google-cloud-cpp

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.