Repository navigation
fix(cli): brand --version output as contextcrawler instead of rtk - #24
Merged
Merged
Conversation
`contextcrawler --version` printed `rtk 0.39.0`. The clap derive's `name = "rtk"` attribute overrode the package name in --version / --help output — leftover from the upstream rebrand sweep that never made it to the clap attribute. Change `name` to "contextcrawler" and update `about` / `long_about` to match the downstream framing. Adds a pinning regression test (`test_cli_name_pinned_to_contextcrawler`) that uses `clap::CommandFactory::command().get_name()` to assert the brand hasn't drifted — same insurance pattern as #19's RTK_MD constant test. Pre-fix verification: `contextcrawler --version` -> "rtk 0.39.0". Post-fix: -> "contextcrawler 0.39.0". Test suite: 2027 passed (+1 new pinning test). No existing test references the literal "rtk" version string. Closes #22
This was referenced May 18, 2026
Merged
noogalabs
pushed a commit
to noogalabs/contextcrawler
that referenced
this pull request
Jun 4, 2026
… branding-lint extension **Version bump 0.39.0 → 0.1.7.** The upstream rebase pulled in rtk's `0.39.0` version; restoring the downstream `0.1.x` numbering line per the maintainer's call. `.release-please-manifest.json` updated to match. Last downstream tag was `v0.1.6` (2026-05-15); this is the next in the sequence. **release-please-config.json `package-name: "rtk"` → "contextcrawler".** Caught by manual audit during release prep. Same regression-family as thehoff#19 / thehoff#20 / thehoff#22: a rebrand gap the prior branding-lint (src/-scoped) didn't catch because release-please-config.json lives at repo root. Without this fix, release-please would have produced `rtk-vX.Y.Z` tags and release-PR titles. **Cargo.toml `extended-description` rebrand.** Line 77 still read "rtk filters and compresses..." — same upstream-leak family. Fixed. **Extended `tests/branding_lint.rs`** with a third test — `branding_lint_config_files_pin_canonical_package_name` — that: - Parses Cargo.toml and asserts `[package].name == "contextcrawler"` - Parses release-please-config.json and asserts `packages["."]["package-name"] == "contextcrawler"` This closes the gap that let release-please-config.json silently drift to `"rtk"` post-rebase. Any future rebase that re-introduces an upstream package-name fails `cargo test --test branding_lint` with an explicit error pointing at issues thehoff#19/thehoff#20/thehoff#22 history. **CHANGELOG.md** entry for v0.1.7 added, summarizing all PRs merged today (thehoff#10 thehoff#15 thehoff#16 thehoff#21 thehoff#24 thehoff#25 thehoff#30) plus the deferred follow-ups (thehoff#26 thehoff#27 thehoff#28 thehoff#29). Tests: 2027 bin + 3 branding-lint (1 new) + 1 harness = all pass. Verified: `contextcrawler --version` now prints `contextcrawler 0.1.7`. Refs thehoff#19 thehoff#20 thehoff#22 thehoff#29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
contextcrawler --versionprintedrtk 0.39.0. The clap derive'sname = "rtk"attribute overrode the package name in--version/--helpoutput — a leftover from the upstream rebrand sweep.Fix
name = "rtk"→name = "contextcrawler"inClideriveabout/long_aboutto match downstream framingclap::CommandFactoryso a future revert fails the suiteReviewed by Codex
Test plan
cargo test --bin contextcrawler— 2027 passed (+1 new)contextcrawler --version→rtk 0.39.0contextcrawler --version→contextcrawler 0.39.0Closes #22