coretrace-log is downloaded twice: declared as coretrace-logger here and coretrace_logger by the compiler
维护者通常 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 内容生成。
描述
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
ctestpass 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CoreTrace/coretrace 的其他 Issue
-
documentation severity/minor
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
chore good first issue severity/minor
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
build good first issue severity/minor
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
test: add unit tests for ctrace::RunDirectory可能已有人在做 @tecnolgd 于 1 天前认领。 未关闭good first issue test
难度 2/5 1-3 小时 新手友好度 88/100
CoreTrace/coretrace#164 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
build severity/minor
难度 3/5 1-2 天 新手友好度 69/100
维护者通常 1 天内回复
查看 CoreTrace/coretrace 的全部 Issue
相似的 Issue
-
agent:WSL bug linux LOW
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
0.kind: build failure
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
ai_p1 comp-message-queues
难度 2/5 1-3 小时 新手友好度 72/100
ClickHouse/ClickHouse#125890 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 78/100
yt-project/ewah_bool_utils#215 · 1 条评论 ·