Skip to content

Commit

Permalink
Merge pull request #14 from pavel-procopiuc/master
Browse files Browse the repository at this point in the history
Make sure to disable color in internal cargo output
  • Loading branch information
PaulDance authored Jan 15, 2024
2 parents 4afc9e8 + a8e400f commit 5ebaf05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "cargo-liner"
version = "0.4.2"
edition = "2021"
rust-version = "1.75"
rust-version = "1.70"
description = """
Cargo subcommand to install and update binary packages listed in configuration.
"""
Expand Down
4 changes: 3 additions & 1 deletion src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn spawn_search_exact(pkg: &str) -> Result<Child> {
cmd.stdin(Stdio::null());
cmd.stderr(Stdio::null());
cmd.stdout(Stdio::piped());
cmd.args(["search", "--limit=1", "--", pkg]);
cmd.args(["search", "--color", "never", "--limit=1", "--", pkg]);

log_cmd(&cmd);
Ok(cmd.spawn()?)
Expand Down Expand Up @@ -158,6 +158,8 @@ pub fn config_get(key: &str) -> Result<String> {
// FIXME: remove when `config` gets stabilized.
cmd.env("RUSTC_BOOTSTRAP", "1");
cmd.args([
"--color",
"never",
"-Z",
"unstable-options",
"config",
Expand Down

0 comments on commit 5ebaf05

Please sign in to comment.