Skip to content

fix: make cargo install clang-tools-manager --features bin work - #532

Merged
2bndy5 merged 1 commit into
mainfrom
claude/project-thread-a3krfd-3
Oct 30, 2026
Merged

2bndy5 merged 1 commit into
mainfrom
claude/project-thread-a3krfd-3

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

cargo install clang-tools-manager --features bin fails to compile:

error: The default runtime flavor is `multi_thread`, but the `rt-multi-thread` feature is disabled.
  --> clang-tools-manager/src/main.rs:74:1

The bin feature only builds inside the workspace, where cpp-linter enables tokio's rt-multi-thread and reqwest's default-tls. Built alone (cargo build -p clang-tools-manager --features bin), it also has no TLS backend, so every download fails.

cargo binstall clang-tools-manager can't use the release assets either: pkg-url uses { name } (clang-tools-manager-<target>..., 404), but the assets are named clang-tools-<target>..., with the binary at the archive's root.

Changes

  • bin feature: add tokio/rt-multi-thread and reqwest/default-tls (same as cpp-linter's bin feature).
  • binstall metadata: pkg-url uses clang-tools-{ target }, bin-dir = "{ bin }{ binary-ext }".

Testing

  • cargo build -p clang-tools-manager --features bin with a separate target dir now compiles, and clang-tools clang-format -v 19 -d <dir> downloads and installs it.
  • clang-tools-x86_64-unknown-linux-gnu.tar.gz from clang-tools-manager/v0.3.1 has clang-tools at its root; the old URL returns 404.

The `bin` feature did not enable tokio's multi-threaded runtime (needed
by `#[tokio::main]`) nor a TLS backend for reqwest. So the `clang-tools`
binary only compiled within the workspace, where cpp-linter enables
both. Installing the crate on its own failed to compile, and a build
without TLS could not download anything.

Also fix the cargo-binstall URL: release assets are named
`clang-tools-<target>`, not `clang-tools-manager-<target>`.
@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 758a7fbd-54d1-443d-bd2e-b27aa0ee4662
Commits

Reviewing files that changed from the base of the PR and between eb6d908 and 6ce2294.

Files selected for processing: 1
  • clang-tools-manager/Cargo.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@shenxianpeng shenxianpeng self-assigned this Oct 29, 2026

Copy link
Copy Markdown
Member Author

pre-commit / run-pre-commit fails for a reason outside this PR: the shared workflow (cpp-linter/.github pre-commit.yml) uses node-version: latest, which now installs Node v27.0.0-alpha.0.0.0, and cspell-cli refuses to run on it. All other hooks pass. A fix (node-version: lts/*) for cpp-linter/.github is ready; this check will be re-run once it lands.


Generated by Claude Code

@codecov

codecov Bot commented Oct 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.88%. Comparing base (b3e0456) to head (6ce2294).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #532   +/-   ##
=======================================
  Coverage   99.88%   99.88%           
=======================================
  Files          28       28           
  Lines        6930     6930           
=======================================
  Hits         6922     6922           
  Misses          8        8           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@2bndy5
2bndy5 merged commit a4c4e24 into main Oct 30, 2026
73 of 81 checks passed
@2bndy5
2bndy5 deleted the claude/project-thread-a3krfd-3 branch October 30, 2026 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants