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

coretrace-log is downloaded twice: declared as coretrace-logger here and coretrace_logger by the compiler

オープン 初心者向け
#176 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cmake, cpp
領域
build-system

調査の方向性

まず cmake/logger/coretraceLog.cmake:18 を確認し、次に固定されたコンパイラのコミットで CMakeLists.txt:100 と CMakeLists.txt:151-163 の FetchContent 宣言を比較します。logger の宣言名を coretrace_logger に変更します。クリーンなビルドで _deps/*logger*-src が1つだけあることを確認し、Linux と macOS でビルドと ctest を実行します。

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

説明

build severity/minor

cmake/logger/coretraceLog.cmake:18 declares coretrace-log as coretrace-logger (v1.0.0). coretrace-compiler, which the analyzers fetch, declares the same repository as coretrace_logger, and calls FetchContent_Populate before checking whether the target already exists (its CMakeLists.txt:151-163, at the pinned commit 866fa76). A fresh build therefore downloads the logger twice, into build/_deps/coretrace-logger-src and build/_deps/coretrace_logger-src.

Both copies are the same commit today (v1.0.0 is 624688a), but nothing keeps them equal. Two declarations of this dependency already broke the build once (#37, #40).

Fix

Declare it as coretrace_logger, the name the stack analyzer and coretrace-compiler use. FetchContent keeps the first declaration of a name, and coretrace declares it first (CMakeLists.txt:100). FetchContent_GetProperties(coretrace_logger) in the compiler then finds it populated and downloads nothing.

Acceptance

  • A fresh build directory holds a single _deps/*logger*-src.
  • The build and ctest pass on Linux and macOS.

From the technical debt register (docs/quality/technical-debt.md, D9).

主要言語
C++
スター
5
フォーク
4
平均マージ
1時間 57分
マージ済み PR(30日)
88

環境構築

はじめの一歩

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

CoreTrace/coretrace のほかの issue

CoreTrace/coretrace の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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