Skip to content

rtk cargo build --message-format=short reports a clean build and drops the warnings #5064

Description

@KuSh

--message-format=short prints src/main.rs:1:4: warning: function unused_fn is never used. The build filter only counts lines starting with warning:, so:

$ rtk cargo build --message-format=short
cargo build (1 crates compiled)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s

Raw cargo shows the warning and warning: ok (bin "ok") generated 1 warning. Same for check. Reproduced on develop 08a261a, unchanged since v1.2.0. Expected: short-format diagnostics are counted and shown, or the short format passes through.

Activity

  1. rtk-wshm-sync-bot commented on Nov 10, 2026

    @rtk-wshm-sync-bot

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟡 Priority medium
    🎯 Confidence 90%

    Summary

    --message-format=short output filter only matches lines starting with warning:, so short-format warnings are silently dropped and build reported clean.

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • src/filter/cargo.rs

    Suggested Actions

    1. Update cargo short-format parser to match indented/short-style warning lines, not just lines starting with warning:
    2. Add a regression test using --message-format=short output with a dead-code warning
    3. Check same filter path for rtk cargo check since issue reports it's also affected

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

  2. added 3 commits that reference this issue on Nov 17, 2026
    6854815
    46b5745
    1f6890a
  3. added a commit that references this issue on Nov 28, 2026
    8bb3bec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clibugcargopriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions