Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vporton committed Feb 1, 2025
1 parent ab3428c commit 6f6dbe9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/dfx/src/commands/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 6f6dbe9

Please sign in to comment.