Revert "fix: Fix lints and be sure to login before build in rechunk"

This reverts commit 51fd86ed6b.
This commit is contained in:
Gerald Pinder 2025-03-26 14:36:02 -04:00
parent 51fd86ed6b
commit bd22b77430
3 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,6 @@
use std::{process::Stdio, time::Duration};
use blue_build_utils::constants::SUDO_ASKPASS;
use cached::proc_macro::cached;
use colored::Colorize;
use comlexr::cmd;
@ -76,7 +77,7 @@ impl super::OciCopy for SkopeoDriver {
} else {
"skopeo"
},
if use_sudo && blue_build_utils::has_env_var(blue_build_utils::constants::SUDO_ASKPASS) => [
if use_sudo && blue_build_utils::has_env_var(SUDO_ASKPASS) => [
"-A",
"-p",
format!(

View file

@ -287,8 +287,6 @@ pub trait RechunkDriver: RunDriver + BuildDriver + ContainerMountDriver {
))
.into_diagnostic()?;
Self::login(true)?;
Self::build(
&BuildOpts::builder()
.image(raw_image.to_string())

View file

@ -161,7 +161,7 @@ impl BlueBuildCommand for BuildCommand {
if self.push {
blue_build_utils::check_command_exists("cosign")?;
Driver::check_signing_files(&CheckKeyPairOpts::builder().dir(Path::new(".")).build())?;
Driver::login(false)?;
Driver::login(self.rechunk)?;
Driver::signing_login()?;
}