Skip to content

The "rustup fix --edition" command claims project is not under VCS #6766

Closed
@patriksvensson

Description

@patriksvensson

Problem

I wanted to update an old project to the 2018 edition (on Windows 10.0.1809.0), so I ran cargo fix --edition. However, even though my project is under source control, it says it's not:

Patrik@SPECTRE-3 [C:\Users\Patrik\Source\Git\cake-build\cakeup] [master ≡]
> cargo fix --edition
error: no VCS found for this package and `cargo fix` can potentially perform destructive changes; if you'd like to suppress this error pass `--allow-no-vcs`

Of course I can use the --allow-no-vcs flag, so it's not really a problem but thought I should report this anyway.

Steps

  1. Update the toolchain by running rustup update
  2. Clone git@github.com:cake-build/cakeup.git
  3. Run cargo fix --edition

Notes

Output of cargo version:

cargo 1.33.0 (f099fe94b 2019-02-12)

Metadata

Metadata

Assignees

Labels

C-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions