Skip to content

Commit 57397fe

Browse files
committed
install: Propagate skopeo stderr
We're going to need to consistently use a helper to get this right in the future...basically most uses of `.output()` are wrong. Signed-off-by: Colin Walters <[email protected]>
1 parent 1a36314 commit 57397fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/install.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ fn skopeo_supports_containers_storage() -> Result<bool> {
694694
let o = run_in_host_mountns("skopeo").arg("--version").output()?;
695695
let st = o.status;
696696
if !st.success() {
697+
let _ = std::io::copy(&mut std::io::Cursor::new(o.stderr), &mut std::io::stderr()); // Ignore errors copying stderr
697698
anyhow::bail!("Failed to run skopeo --version: {st:?}");
698699
}
699700
let stdout = String::from_utf8(o.stdout).context("Parsing skopeo version")?;

0 commit comments

Comments
 (0)