You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Update the toolchain by running rustup update
Clone git@github.com:cake-build/cakeup.git
Run cargo fix --edition
Notes
Output of cargo version:
cargo 1.33.0 (f099fe94b 2019-02-12)
The text was updated successfully, but these errors were encountered:
Looks like the issue is that there is a cakeup* entry in .gitignore, and that is being compared to the root working directory. I think it should probably not check the root against the ignore list.
Allow `cargo fix` if gitignore matches root working dir.
If `.gitignore` had a rule that matched the root working directory, it would believe that the whole thing is ignored. This is not usually how git works (AFAIK), so don't check gitignore against the root.
Closes#6766
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: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
rustup update
git@github.com:cake-build/cakeup.git
cargo fix --edition
Notes
Output of
cargo version
:The text was updated successfully, but these errors were encountered: