fix: Fix lints and be sure to login before build in rechunk
This commit is contained in:
parent
185a34f86b
commit
51fd86ed6b
3 changed files with 4 additions and 3 deletions
|
|
@ -1,6 +1,5 @@
|
|||
use std::{process::Stdio, time::Duration};
|
||||
|
||||
use blue_build_utils::constants::SUDO_ASKPASS;
|
||||
use cached::proc_macro::cached;
|
||||
use colored::Colorize;
|
||||
use comlexr::cmd;
|
||||
|
|
@ -77,7 +76,7 @@ impl super::OciCopy for SkopeoDriver {
|
|||
} else {
|
||||
"skopeo"
|
||||
},
|
||||
if use_sudo && blue_build_utils::has_env_var(SUDO_ASKPASS) => [
|
||||
if use_sudo && blue_build_utils::has_env_var(blue_build_utils::constants::SUDO_ASKPASS) => [
|
||||
"-A",
|
||||
"-p",
|
||||
format!(
|
||||
|
|
|
|||
|
|
@ -287,6 +287,8 @@ pub trait RechunkDriver: RunDriver + BuildDriver + ContainerMountDriver {
|
|||
))
|
||||
.into_diagnostic()?;
|
||||
|
||||
Self::login(true)?;
|
||||
|
||||
Self::build(
|
||||
&BuildOpts::builder()
|
||||
.image(raw_image.to_string())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue