Commit 0a43f56
committed
Suppress color in
Without this, the `check` recipe in the `justfile` was failing on
CI due to the change in the previous commit. On CI, we set
`CARGO_TERM_COLOR` to `always`. The `--color` option takes
precedence over the `CARGO_TERM_COLOR` environment variable.
The suppresion is only done on those specific command whose
stderr is being parsed. Other colorization remains allowed,
including on CI.
(An alternative to using `--color` here could be to make the `grep`
pattern tolerate color codes where they may be present. But this
would make the pattern considerably longer, more complicated, less
less readable, and easier to get wrong.)cargo tree warnings for simpler grepping1 parent b8147f4 commit 0a43f56
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments