Skip to content

[feat] Ignore --diagnostic-width when computing hash #2418

@sergey-shandar

Description

@sergey-shandar

--diagnostic-width= depends on the terminal settings, and it shouldn't affect compilation. However, sccache includes this flag in hash computation. It means these two commands don't share cache:

# 1. include `--diagnostic-width=` for TTY terminals
cargo build

# 2. exclude `--diagnostic-width=`. No cache hits!
cargo build > _.log 2>&1

Could we have an sccache option to remove the --diagnostic-width= parameter from hash computation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions