From e63fd25cac46ba7308971d3465f0b869857b1939 Mon Sep 17 00:00:00 2001 From: Victor Porton Date: Wed, 29 Jan 2025 19:40:04 +0200 Subject: [PATCH] bug fix --- src/dfx/src/commands/rules.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dfx/src/commands/rules.rs b/src/dfx/src/commands/rules.rs index 297634e6d6..67f7753328 100644 --- a/src/dfx/src/commands/rules.rs +++ b/src/dfx/src/commands/rules.rs @@ -85,7 +85,7 @@ pub fn exec(env1: &dyn Environment, opts: RulesOpts) -> DfxResult { let path2 = format!("$(ROOT_DIR)/.dfx/$(NETWORK)/canisters/{}/assetstorage.did", canister.0); output_file.write_fmt(format_args!("canister@{}: \\\n {} {}\n\n", canister.0, path1, path2))?; // output_file.write_fmt(format_args!( - // "{} {}:\n\tdfx canister create {}\n\tdfx build --no-deps {}\n\n", path1, path2, canister.0, canister.0 + // "{} {}:\n\tdfx canister create {}\n\tdfx build --no-deps --network $(NETWORK) {}\n\n", path1, path2, canister.0, canister.0 // ))?; } else { let path1 = format!("$(ROOT_DIR)/.dfx/$(NETWORK)/canisters/{}/{}.wasm", canister.0, canister.0); @@ -215,7 +215,7 @@ fn get_build_command(graph: &Graph, node_id: as G let node_value = graph.node_weight(node_id).unwrap(); match node_value { Import::Canister(canister_name) | Import::Ic(canister_name) => - Some(format!("dfx canister create {}\n\tdfx build --no-deps {}", canister_name, canister_name)), + Some(format!("dfx canister create {}\n\tdfx build --no-deps --network $(NETWORK) {}", canister_name, canister_name)), Import::Path(_path) => None, Import::Lib(_path) => None, }