Skip to content

Commit

Permalink
test: change cargo-component to cargo component subcommand (#12)
Browse files Browse the repository at this point in the history
Also use --locked flag
  • Loading branch information
sehnryr authored Jul 5, 2024
1 parent b37d374 commit b328da2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/multi/mangadex/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ static EXTENSION_PATH: Lazy<PathBuf> = Lazy::new(|| {
let extension_name = package_name.replace("-", "_");

// Build the extension in release mode
let output = std::process::Command::new("cargo-component")
let output = std::process::Command::new("cargo")
.args(&[
"component",
"build",
"--release",
"--package",
package_name,
"--target",
"wasm32-unknown-unknown",
"--locked",
])
.output()
.expect("Failed to build the extension");
Expand Down

0 comments on commit b328da2

Please sign in to comment.