File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,15 @@ impl CanisterBuilder for MotokoBuilder {
238
238
} ;
239
239
} ;
240
240
} else {
241
- bail ! ( "already compiled" ) ; // FIXME: Ensure that `dfx` command doesn't return false because of this.
241
+ // trace!(log, "Canister {} already compiled", canister_info.get_name()); // TODO
242
+ return Ok ( BuildOutput { // duplicate code
243
+ canister_id : canister_info
244
+ . get_canister_id ( )
245
+ . expect ( "Could not find canister ID." ) ,
246
+ wasm : WasmBuildOutput :: File ( motoko_info. get_output_wasm_path ( ) . to_path_buf ( ) ) ,
247
+ idl : IdlBuildOutput :: File ( motoko_info. get_output_idl_path ( ) . to_path_buf ( ) ) ,
248
+ } )
249
+
242
250
}
243
251
}
244
252
} ;
@@ -279,7 +287,7 @@ impl CanisterBuilder for MotokoBuilder {
279
287
} ;
280
288
motoko_compile ( & self . logger , cache. as_ref ( ) , & params) ?;
281
289
282
- Ok ( BuildOutput {
290
+ Ok ( BuildOutput { // duplicate code
283
291
canister_id : canister_info
284
292
. get_canister_id ( )
285
293
. expect ( "Could not find canister ID." ) ,
You can’t perform that action at this time.
0 commit comments