Skip to content

fix(docs): make RTK installation verification version-independent - #4744

Open
Rashal10 wants to merge 1 commit into
rtk-ai:developfrom
Rashal10:fix/3396-version-verification
Open

Rashal10 wants to merge 1 commit into
rtk-ai:developfrom
Rashal10:fix/3396-version-verification

Conversation

@Rashal10

Copy link
Copy Markdown

Fixes #3396

  • Replace the security-guardian's pinned version check with version-independent version validation and a gain --help capability check.
  • Remove outdated version expectations from six translated READMEs.
  • Add regression coverage for valid releases, incorrect packages, malformed responses, and command failures.

Validation:

  • All 27 focused regression checks passed.
  • Verified against the official Windows RTK 1.0.1 binary.
  • Documentation validation and whitespace checks passed.
  • cargo fmt --all --check passed.
  • cargo clippy --all-targets passed.
  • cargo test on Windows: 4,350 library tests passed, 8 ignored, and 1 failed.

The remaining library failure matches existing issue #3730:
test_read_lines_lossy_preserves_lines_after_invalid_utf8 produces π
instead of U+FFFD. The affected Rust files are unchanged by this PR.
Integration tests were not reached in that run.

A separate validation run passed all library tests but encountered an
unchanged integration test failure in
zsh_command_string_rewrites_inner_commands because RTK emitted its
“No hook installed” warning on stderr. The complete suite is not reported
as passing.

Thank You!

@rtk-wshm-sync-bot rtk-wshm-sync-bot Bot added documentation Improvements or additions to documentation security testing labels Oct 22, 2026
@rtk-wshm-sync-bot

Copy link
Copy Markdown

wshm · Automated triage by AI

📊 Automated PR Analysis

🐛 Type bug-fix
🟡 Risk medium

Summary

This PR replaces the security-guardian skill's hardcoded RTK version check with a version-independent validation (regex pattern match plus a gain --help identity check), removing outdated pinned-version expectations from the main and six translated READMEs. It adds a regression test script covering valid releases, incorrect packages, malformed version output, and command failures.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Linked issues: #3396


Analyzed automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation security testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install verification tells users to expect rtk 0.28.2, and a shipped skill warns on anything that is not rtk 0.16

1 participant