Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭 适合新手
#176 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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,然后在 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 小时 2 分钟
30 天内合并 PR
74

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CoreTrace/coretrace 的其他 Issue

查看 CoreTrace/coretrace 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。