From f4a4220cd4691e562d0a849ad8900bf54411363b Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 25 Jul 2024 08:26:26 +0100 Subject: fix(init): add missing identifier to yaml add missing or updated identifier to maintainers.yaml as we were not checking whether it has changed or added also update if relays do not match --- src/sub_commands/init.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/sub_commands/init.rs b/src/sub_commands/init.rs index 1c51375..28ba21b 100644 --- a/src/sub_commands/init.rs +++ b/src/sub_commands/init.rs @@ -348,8 +348,11 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { // if yaml file doesnt exist or needs updating if match &repo_config_result { Ok(config) => { - !(extract_pks(config.maintainers.clone())?.eq(&maintainers) - && config.relays.eq(&relays)) + ! as Clone>::clone(&config.identifier) + .unwrap_or_default() + .eq(&identifier) + || !extract_pks(config.maintainers.clone())?.eq(&maintainers) + || !config.relays.eq(&relays) } Err(_) => true, } { -- cgit v1.2.3