Commit 08f03aa8 authored by Wohlgemuth, Jason's avatar Wohlgemuth, Jason
Browse files

feat: Add initial --skip-verify-requirements capability

parent fc8b3a88
Loading
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ pub fn run(
    dry_run: bool,
    offline: bool,
    _skip_verify_checksum: bool,
    _skip_verify_reqruirements: bool,
    skip_verify_requirements: bool,
    verbose: Verbosity,
) -> Result<(), Report> {
    let id = nanoid!(10, &nanoid::alphabet::SAFE);
@@ -47,6 +47,7 @@ pub fn run(
    match Config::read(config_path) {
        | Some(cfg) => {
            // Check requirements
            if !skip_verify_requirements {
                cfg.requirements.iter().for_each(|name| {
                    let command = Command::init().name(name.clone()).build();
                    if !command.test() {
@@ -54,6 +55,9 @@ pub fn run(
                        std::process::exit(exitcode::UNAVAILABLE);
                    }
                });
            } else {
                debug!("Skipping requirements verification");
            }
            // Prepare modules
            cfg.modules.par_iter().for_each(|module| match &module.module_type {
                | ModuleType::Binary { uri } => match ModuleUri::from(uri) {