@@ -10,7 +10,7 @@ use clap::{ArgMatches, Clap, 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 ;
@@ -170,7 +170,7 @@ async fn get_deployment_data(
170
170
supports_flakes : bool ,
171
171
flakes : & [ deploy:: DeployFlake < ' _ > ] ,
172
172
extra_build_args : & [ String ] ,
173
- ) -> Result < Vec < deploy :: data :: Data > , GetDeploymentDataError > {
173
+ ) -> Result < Vec < settings :: Root > , GetDeploymentDataError > {
174
174
futures_util:: stream:: iter ( flakes) . then ( |flake| async move {
175
175
176
176
info ! ( "Evaluating flake in {}" , flake. repo) ;
@@ -389,14 +389,14 @@ pub enum RunDeployError {
389
389
390
390
type ToDeploy < ' a > = Vec < (
391
391
& ' a deploy:: DeployFlake < ' a > ,
392
- & ' a deploy :: data :: Data ,
393
- ( & ' a str , & ' a deploy :: data :: Node ) ,
394
- ( & ' a str , & ' a deploy :: data :: Profile ) ,
392
+ & ' a settings :: Root ,
393
+ ( & ' a str , & ' a settings :: Node ) ,
394
+ ( & ' a str , & ' a settings :: Profile ) ,
395
395
) > ;
396
396
397
397
async fn run_deploy (
398
398
deploy_flakes : Vec < deploy:: DeployFlake < ' _ > > ,
399
- data : Vec < deploy :: data :: Data > ,
399
+ data : Vec < settings :: Root > ,
400
400
supports_flakes : bool ,
401
401
check_sigs : bool ,
402
402
interactive : bool ,
@@ -437,7 +437,7 @@ async fn run_deploy(
437
437
None => return Err ( RunDeployError :: NodeNotFound ( node_name. clone ( ) ) ) ,
438
438
} ;
439
439
440
- let mut profiles_list: Vec < ( & str , & deploy :: data :: Profile ) > = Vec :: new ( ) ;
440
+ let mut profiles_list: Vec < ( & str , & settings :: Profile ) > = Vec :: new ( ) ;
441
441
442
442
for profile_name in [
443
443
node. node_settings . profiles_order . iter ( ) . collect ( ) ,
@@ -466,7 +466,7 @@ async fn run_deploy(
466
466
let mut l = Vec :: new ( ) ;
467
467
468
468
for ( node_name, node) in & data. nodes {
469
- let mut profiles_list: Vec < ( & str , & deploy :: data :: Profile ) > = Vec :: new ( ) ;
469
+ let mut profiles_list: Vec < ( & str , & settings :: Profile ) > = Vec :: new ( ) ;
470
470
471
471
for profile_name in [
472
472
node. node_settings . profiles_order . iter ( ) . collect ( ) ,
0 commit comments