-
Notifications
You must be signed in to change notification settings - Fork 2.6k
cargo fmt is slow without a fresh registry index #8345
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
Comments
This is an issue for the https://github.com/rust-lang/rustfmt/issues repo, do you mind moving it over there? |
OK, I was not sure which tool is at fault here. |
Here's a more extensive log excerpt that suggests rustfmt is not run before the initial slowdown happens:
|
I've found the cause: a fresh checkout of the It's odd, though, that the |
It is slow due to rust-lang/cargo#8345
It ran slow due to rust-lang/cargo#8345
Sorry, I should have specified in my comment. The issue is here where cargo-fmt calls |
OK, let's track it in rust-lang/rustfmt#4247 then. |
It is slow due to rust-lang/cargo#8345
Problem
cargo fmt --all
runs unexpectedly slow in a medium-sized workspace project.Steps
cargo fmt --all
on the repository.This run shows cargo pausing for more than 20 s before producing any output in verbose mode. Seen with timestamps in the raw log:
Notes
Output of
cargo version
:cargo 1.44.0 (05d080f 2020-05-06)
Virtual environment information from GitHub workflow:
Operating System
Ubuntu
18.04.4
LTS
Virtual Environment
Environment: ubuntu-18.04
Version: 20200518.1
Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20200518.1/images/linux/Ubuntu1804-README.md
The text was updated successfully, but these errors were encountered: