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
The --all option for cargo commands was soft-deprecated in favor of the --workspace option, which does the same thing. It seems like this same thing was not done for cargo fmt, which still only has --all as an option to run it on all workspace packages.
Steps
run cargo fmt --workspace
observe error: Found argument '--workspace' which wasn't expected, or isn't valid in this context
Possible Solution(s)
Introduce --workspace flag for cargo fmt.
Notes
Latest version I currently have installed is cargo 1.52.0-nightly (90691f2bf 2021-03-16), I can't update right now; sorry if this already got fixed.
The text was updated successfully, but these errors were encountered:
Moving the issue requires somebody with high enough privileges on both repos, right? Or do you just mean close this issue and open a new one on rustfmt?
Turns out there were already several issues about it, and they got closed because cargo fmt already affects the entire workspace without any options. --all is for path-based deps outside the workspace, which seems like a weird feature but whatever.
Problem
The
--all
option for cargo commands was soft-deprecated in favor of the--workspace
option, which does the same thing. It seems like this same thing was not done forcargo fmt
, which still only has--all
as an option to run it on all workspace packages.Steps
cargo fmt --workspace
error: Found argument '--workspace' which wasn't expected, or isn't valid in this context
Possible Solution(s)
Introduce
--workspace
flag forcargo fmt
.Notes
Latest version I currently have installed is
cargo 1.52.0-nightly (90691f2bf 2021-03-16)
, I can't update right now; sorry if this already got fixed.The text was updated successfully, but these errors were encountered: