Skip to content

cargo fix does not understand git LFS #10009

Open
@stephanemagnenat

Description

@stephanemagnenat

Problem

I have a repository with several binary files in my git tree using git LFS. When I type cargo fix, cargo says that there are uncommited changes and lists all the files in git LFS as dirty.

Steps

  1. Create a Rust create and put it in git.
  2. Enable git LFS and add some files to it.
  3. Try cargo fix and observe the problem.

Possible Solution(s)

I guess that cargo should understand git LFS.

Notes

No response

Version

cargo 1.56.0 (4ed5d137b 2021-10-04)
release: 1.56.0
commit-hash: 4ed5d137baff5eccf1bae5a7b2ae4b57efad4a7d
commit-date: 2021-10-04

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-gitArea: anything dealing with gitC-bugCategory: bugCommand-fixS-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions