mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-10 14:48:27 +00:00
Merge branch 'master' into release-3.0.1
This commit is contained in:
@@ -41,16 +41,13 @@ impl Add {
|
||||
let bindings = self.lookup_bindings(®istry)?;
|
||||
|
||||
let mut cmd = self.target()?.command(&bindings)?;
|
||||
cmd.stdin(Stdio::null())
|
||||
.stdout(Stdio::inherit())
|
||||
.stderr(Stdio::inherit());
|
||||
|
||||
#[cfg(feature = "debug")]
|
||||
log::debug!("Running {cmd:?}");
|
||||
println!("Running: {cmd:?}");
|
||||
|
||||
let status = cmd
|
||||
.stdin(Stdio::null())
|
||||
.stdout(Stdio::piped())
|
||||
.stderr(Stdio::piped())
|
||||
.status()
|
||||
.with_context(|| {
|
||||
let status = cmd.status().with_context(|| {
|
||||
format!(
|
||||
"Unable to start \"{:?}\". Is it installed?",
|
||||
cmd.get_program()
|
||||
@@ -63,8 +60,7 @@ impl Add {
|
||||
}
|
||||
|
||||
fn lookup_bindings(&self, registry: &str) -> Result<Vec<Bindings>, Error> {
|
||||
#[cfg(feature = "debug")]
|
||||
log::debug!("Querying WAPM for the bindings packages");
|
||||
println!("Querying WAPM for package bindings");
|
||||
|
||||
let mut bindings_to_add = Vec::new();
|
||||
let language = self.target()?.language();
|
||||
|
||||
Reference in New Issue
Block a user