From 6f6dbe9607c2f2eebbe168d988e742d49f84db25 Mon Sep 17 00:00:00 2001 From: Victor Porton Date: Sat, 1 Feb 2025 21:56:15 +0200 Subject: [PATCH] fix bug --- src/dfx/src/commands/rules.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/dfx/src/commands/rules.rs b/src/dfx/src/commands/rules.rs index 6c8fe0d868..6c7a334739 100644 --- a/src/dfx/src/commands/rules.rs +++ b/src/dfx/src/commands/rules.rs @@ -177,11 +177,9 @@ pub fn exec(env1: &dyn Environment, opts: RulesOpts) -> DfxResult { } output_file.write_fmt(format_args!("\ndeploy-self@{}: canister@{}\n", canister_name, canister_name))?; let deps = canister.as_ref().get_info().get_dependencies(); - if !canister.as_ref().get_info().is_custom() { - output_file.write_fmt(format_args!( // TODO: Use `canister install` instead. - "\tdfx deploy --no-compile --network $(NETWORK) $(DEPLOY_FLAGS) $(DEPLOY_FLAGS.{}) {}\n\n", canister_name, canister_name - ))?; - } + output_file.write_fmt(format_args!( // TODO: Use `canister install` instead. + "\tdfx deploy --no-compile --network $(NETWORK) $(DEPLOY_FLAGS) $(DEPLOY_FLAGS.{}) {}\n\n", canister_name, canister_name + ))?; // If the canister is assets, add `generate@` dependencies. if canister.as_ref().get_info().is_assets() { if !deps.is_empty() {