@@ -10,7 +10,7 @@ use clap::{Clap, ArgMatches, FromArgMatches};
10
10
11
11
use crate as deploy;
12
12
13
- use self :: deploy:: { DeployFlake , ParseFlakeError } ;
13
+ use self :: deploy:: { DeployFlake , ParseFlakeError , settings } ;
14
14
use futures_util:: stream:: { StreamExt , TryStreamExt } ;
15
15
use log:: { debug, error, info, warn} ;
16
16
use serde:: Serialize ;
@@ -173,7 +173,7 @@ async fn get_deployment_data(
173
173
supports_flakes : bool ,
174
174
flakes : & [ deploy:: DeployFlake < ' _ > ] ,
175
175
extra_build_args : & [ String ] ,
176
- ) -> Result < Vec < deploy :: data :: Data > , GetDeploymentDataError > {
176
+ ) -> Result < Vec < settings :: Root > , GetDeploymentDataError > {
177
177
futures_util:: stream:: iter ( flakes) . then ( |flake| async move {
178
178
179
179
info ! ( "Evaluating flake in {}" , flake. repo) ;
@@ -392,14 +392,14 @@ pub enum RunDeployError {
392
392
393
393
type ToDeploy < ' a > = Vec < (
394
394
& ' a deploy:: DeployFlake < ' a > ,
395
- & ' a deploy :: data :: Data ,
396
- ( & ' a str , & ' a deploy :: data :: Node ) ,
397
- ( & ' a str , & ' a deploy :: data :: Profile ) ,
395
+ & ' a settings :: Root ,
396
+ ( & ' a str , & ' a settings :: Node ) ,
397
+ ( & ' a str , & ' a settings :: Profile ) ,
398
398
) > ;
399
399
400
400
async fn run_deploy (
401
401
deploy_flakes : Vec < deploy:: DeployFlake < ' _ > > ,
402
- data : Vec < deploy :: data :: Data > ,
402
+ data : Vec < settings :: Root > ,
403
403
supports_flakes : bool ,
404
404
check_sigs : bool ,
405
405
interactive : bool ,
@@ -440,7 +440,7 @@ async fn run_deploy(
440
440
None => return Err ( RunDeployError :: NodeNotFound ( node_name. to_owned ( ) ) ) ,
441
441
} ;
442
442
443
- let mut profiles_list: Vec < ( & str , & deploy :: data :: Profile ) > = Vec :: new ( ) ;
443
+ let mut profiles_list: Vec < ( & str , & settings :: Profile ) > = Vec :: new ( ) ;
444
444
445
445
for profile_name in [
446
446
node. node_settings . profiles_order . iter ( ) . collect ( ) ,
@@ -471,7 +471,7 @@ async fn run_deploy(
471
471
let mut l = Vec :: new ( ) ;
472
472
473
473
for ( node_name, node) in & data. nodes {
474
- let mut profiles_list: Vec < ( & str , & deploy :: data :: Profile ) > = Vec :: new ( ) ;
474
+ let mut profiles_list: Vec < ( & str , & settings :: Profile ) > = Vec :: new ( ) ;
475
475
476
476
for profile_name in [
477
477
node. node_settings . profiles_order . iter ( ) . collect ( ) ,
0 commit comments