Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vporton committed Jan 29, 2025
1 parent 2be04f3 commit e63fd25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dfx/src/commands/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -215,7 +215,7 @@ fn get_build_command(graph: &Graph<Import, ()>, node_id: <Graph<Import, ()> 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,
}
Expand Down

0 comments on commit e63fd25

Please sign in to comment.