Skip to content

Commit 2bccc3f

Browse files
epagerami3l
authored andcommitted
fix(cli): Style CLI errors in init mode
By rolling back `tracing-subscriber` for now Fixes #4731
1 parent 6c15439 commit 2bccc3f

File tree

3 files changed

+53
-21
lines changed

3 files changed

+53
-21
lines changed

Cargo.lock

Lines changed: 41 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ toml = "1.0"
100100
tracing = "0.1"
101101
tracing-log = "0.2"
102102
tracing-opentelemetry = { version = "0.32", optional = true }
103-
tracing-subscriber = { version = "0.3.16", features = ["env-filter"] }
103+
# Newer versions render ANSI escape codes, causing CLI errors to be ugly
104+
# See also https://github.com/tokio-rs/tracing/issues/3369
105+
tracing-subscriber = { version = "=0.3.19", features = ["env-filter"] }
104106
url = "2.4"
105107
wait-timeout = "0.2"
106108
xz2 = "0.1.3"

tests/suite/cli_rustup_ui/rustup_init_unknown_arg.stderr.term.svg

Lines changed: 9 additions & 4 deletions
Loading

0 commit comments

Comments
 (0)