Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something is messed up after interrupting the "Updating registry" step #1979

Closed
tbu- opened this issue Sep 9, 2015 · 0 comments
Closed

Something is messed up after interrupting the "Updating registry" step #1979

tbu- opened this issue Sep 9, 2015 · 0 comments

Comments

@tbu-
Copy link
Contributor

tbu- commented Sep 9, 2015

After I interrupted the "Updating registry" step, cargo couldn't compile rustfmt any more. cargo clean does not help. rm -r ~/.cargo/git/checkouts/strings.rs-0ac72dfb59c24a96/ helps.

   Compiling strings v0.0.1 (https://github.com/nrc/strings.rs.git#6d748148)
     Running `rustc /home/<user>/.cargo/git/checkouts/strings.rs-0ac72dfb59c24a96/master/src/lib.rs --crate-name strings --crate-type lib -g -C metadata=5b531a29f27223f5 -C extra-filename=-5b531a29f27223f5 --out-dir /home/<user>/git/rustfmt/target/debug/deps --emit=dep-info,link -L dependency=/home/<user>/git/rustfmt/target/debug/deps -L dependency=/home/<user>/git/rustfmt/target/debug/deps -Awarnings`
error: couldn't read "/home/<user>/.cargo/git/checkouts/strings.rs-0ac72dfb59c24a96/master/src/lib.rs": No such file or directory (os error 2)

Maybe cargo could try to gracefully shutdown on CTRL-C, or maybe just note somewhere that the extracting of strings.rs was in progress so the next invocation of cargo can clean up.

alexcrichton added a commit to alexcrichton/cargo that referenced this issue Sep 9, 2015
We already take this strategy for extracting tarballs from crates.io for
example, so this just applies the same strategy to checkouts of git repos.

Closes rust-lang#1979
bors added a commit that referenced this issue Sep 9, 2015
We already take this strategy for extracting tarballs from crates.io for
example, so this just applies the same strategy to checkouts of git repos.

Closes #1979
@bors bors closed this as completed in #1981 Sep 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant