From b557ec5e893ef1e7df189e25a08b0a2edd269653 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 8 Nov 2025 05:43:33 +0000 Subject: [PATCH 1/2] chore(deps): update all non-major dependencies --- Cargo.lock | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 797ebb6..cc7dcb1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -60,13 +60,12 @@ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "assert_cmd" -version = "2.0.17" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bd389a4b2970a01282ee455294913c0a43724daedcd1a24c3eb0ec1c1320b66" +checksum = "bcbb6924530aa9e0432442af08bbcafdad182db80d2e560da42a6d442535bf85" dependencies = [ "anstyle", "bstr", - "doc-comment", "libc", "predicates", "predicates-core", @@ -109,9 +108,9 @@ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" [[package]] name = "clap" -version = "4.5.50" +version = "4.5.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c2cfd7bf8a6017ddaa4e32ffe7403d547790db06bd171c1c53926faab501623" +checksum = "4c26d721170e0295f191a69bd9a1f93efcdb0aff38684b61ab5750468972e5f5" dependencies = [ "clap_builder", "clap_derive", @@ -119,9 +118,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.50" +version = "4.5.51" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a4c05b9e80c5ccd3a7ef080ad7b6ba7d6fc00a985b8b157197075677c82c7a0" +checksum = "75835f0c7bf681bfd05abe44e965760fea999a5286c6eb2d59883634fd02011a" dependencies = [ "anstream", "anstyle", @@ -159,12 +158,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8" -[[package]] -name = "doc-comment" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" - [[package]] name = "errno" version = "0.3.14" From 9759de7a05cd1eccd197f16915c6431efef7d212 Mon Sep 17 00:00:00 2001 From: Boris Bera Date: Sun, 9 Nov 2025 10:46:54 -0500 Subject: [PATCH 2/2] chore(test): migrate away from `Command::cargo_bin()` --- tests/integration_tests.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 310549a..9e4f1f6 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -7,7 +7,7 @@ use std::{ }; use anyhow::Result; -use assert_cmd::Command; +use assert_cmd::{cargo, Command}; #[test] fn test_full_run() -> Result<()> { @@ -42,7 +42,7 @@ fn test_full_run() -> Result<()> { )); expected_stdout.push_str("args are foo bar baz\n"); - Command::cargo_bin("cdo")? + Command::new(cargo::cargo_bin!("cdo")) .env("PATH", path_with(&[&bin_dir])?) .arg(&run_dir) .arg("command-to-run") @@ -62,7 +62,7 @@ fn test_echo_command() -> Result<()> { let run_dir = workdir.path().join("directory-to-run-in"); fs::create_dir(&run_dir)?; - Command::cargo_bin("cdo")? + Command::new(cargo::cargo_bin!("cdo")) .arg(&run_dir) .arg("echo") .args(["fi", "fo", "fum"]) @@ -80,7 +80,7 @@ fn test_pwd_command() -> Result<()> { let run_dir = workdir.path().join("directory-to-run-in"); fs::create_dir(&run_dir)?; - Command::cargo_bin("cdo")? + Command::new(cargo::cargo_bin!("cdo")) .arg(&run_dir) .arg("pwd") .assert() @@ -103,7 +103,7 @@ fn test_command_absolute_path() -> Result<()> { fs::write(&command_path, concat!("#!/bin/sh\n", "echo it works\n",))?; fs::set_permissions(&command_path, Permissions::from_mode(0o755))?; - Command::cargo_bin("cdo")? + Command::new(cargo::cargo_bin!("cdo")) .arg(&run_dir) .arg(&command_path) .assert() @@ -120,7 +120,7 @@ fn test_pass_all_flags() -> Result<()> { let run_dir = workdir.path().join("directory-to-run-in"); fs::create_dir(&run_dir)?; - Command::cargo_bin("cdo")? + Command::new(cargo::cargo_bin!("cdo")) .arg(&run_dir) .arg("echo") .args([ @@ -148,7 +148,7 @@ fn test_crash_when_command_not_found() -> Result<()> { let run_dir = workdir.path().join("directory-to-run-in"); fs::create_dir(&run_dir)?; - Command::cargo_bin("cdo")? + Command::new(cargo::cargo_bin!("cdo")) .arg(&run_dir) .arg("command-that-does-not-exist") .assert() @@ -159,7 +159,7 @@ fn test_crash_when_command_not_found() -> Result<()> { #[test] fn test_crash_when_directory_not_found() -> Result<()> { - Command::cargo_bin("cdo")? + Command::new(cargo::cargo_bin!("cdo")) .arg("dir-that-does-not-exist") .arg("echo") .args(["foo", "bar", "baz"]) @@ -176,7 +176,7 @@ fn test_crash_when_directory_is_file() -> Result<()> { let run_dir = workdir.path().join("directory-to-run-in"); fs::write(&run_dir, "This is actually a file. HaHa!")?; - Command::cargo_bin("cdo")? + Command::new(cargo::cargo_bin!("cdo")) .arg(&run_dir) .arg("echo") .args(["foo", "bar", "baz"])