mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-23 10:38:57 +00:00
fix CI: replace removed macOS runner, deprecated use of Command::cargo_bin() (#4134)
* fix(ci): update macOS intel runner version * fix(cli/tests): replace use of deprecated `Command::cargo_bin()`
This commit is contained in:
@@ -76,7 +76,7 @@ sqlx-toml = ["sqlx/sqlx-toml"]
|
||||
_sqlite = []
|
||||
|
||||
[dev-dependencies]
|
||||
assert_cmd = "2.0.11"
|
||||
assert_cmd = "2.1.1"
|
||||
tempfile = "3.10.1"
|
||||
|
||||
[lints]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use anyhow::Context;
|
||||
use assert_cmd::Command;
|
||||
use assert_cmd::cargo_bin_cmd;
|
||||
use std::cmp::Ordering;
|
||||
use std::fs::read_dir;
|
||||
use std::ops::Index;
|
||||
@@ -117,7 +117,7 @@ impl AddMigrations {
|
||||
sequential: bool,
|
||||
expect_success: bool,
|
||||
) -> anyhow::Result<&'_ Self> {
|
||||
let cmd_result = Command::cargo_bin("cargo-sqlx")?
|
||||
let cmd_result = cargo_bin_cmd!("cargo-sqlx")
|
||||
.current_dir(&self.tempdir)
|
||||
.args(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user