Skip to content

cargo fix requiring --allow-dirty despite all untracked files not being .*rs files #17022

@kraktus

Description

@kraktus

Problem

seen behaviour

cargo fix

error: the working directory of this package has uncommitted changes, and `cargo fix` can potentially perform destructive changes; if you'd like to suppress this error pass `--allow-dirty`, or commit the changes to these files:

  * api.txt (dirty)
  * diff.diff (dirty)

expected behaviour

cargo fix should run if no rust file is dirty or untracked.

I've looked for issues related to this, and only found

Proposed Solution

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-vcsArea: general VCS issuesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-fixS-triageStatus: This issue is waiting on initial triage.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions