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

Remove USE_EXTERNAL_CLI11: it downloads CLI11 2.3.2 while the vendored header is 2.5.0

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
85/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
活跃
技术栈
cmake, cpp
领域
build-system

调研方向

阅读 CMakeLists.txt 中的 USE_EXTERNAL_CLI11 选项和条件代码块,然后检查 cmake/CLI11.cmake 以及 issue 中两个 git grep 命令找到的引用。删除该选项和模块,然后运行列出的构建、ctest 和格式检查命令。当使用仓库中 vendored 的 CLI11 头文件,且不再有对该选项或模块的引用时,即为完成。

由索引模型根据 Issue 内容生成。

描述

build good first issue severity/minor

ctrace parses its command line with the CLI11 header vendored in external/CLI11.hpp, version 2.5.0. With -DUSE_EXTERNAL_CLI11=ON (CMakeLists.txt:115-120), CMake downloads CLI11 v2.3.2 instead (cmake/CLI11.cmake): an older version that CI never builds, while the release license check reads the vendored header (CMakeLists.txt:209-214). The option gives two possible versions of the same dependency, and nothing needs it.

To do: remove the option and keep the vendored header.

How:

  • delete cmake/CLI11.cmake;
  • delete the USE_EXTERNAL_CLI11 option and its if block in CMakeLists.txt (lines 115 to 120);
  • run git grep -n USE_EXTERNAL_CLI11 and git grep -n CLI11.cmake to check that nothing else refers to them.

The wiki's build page also lists the option; a maintainer will update it.

Check:

cmake --build build --parallel 4
ctest --test-dir build --output-on-failure
./scripts/format-check.sh

Acceptance

  • cmake/CLI11.cmake is gone, and git grep USE_EXTERNAL_CLI11 finds nothing.
  • The README build configures and builds, and ctest passes.

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

主要语言
C++
星标
5
派生
4
平均合并
1 小时 9 分钟
30 天内合并 PR
81

环境准备

  • 没有 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 摘要。