File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,13 @@ impl MotokoBuilder {
165
165
}
166
166
} ;
167
167
168
+ std:: fs:: create_dir_all ( motoko_info. get_output_root ( ) ) . with_context ( || {
169
+ format ! (
170
+ "Failed to create {}." ,
171
+ motoko_info. get_output_root( ) . to_string_lossy( )
172
+ )
173
+ } ) ?;
174
+
168
175
let idl_dir_path = & config. idl_root ;
169
176
std:: fs:: create_dir_all ( idl_dir_path)
170
177
. with_context ( || format ! ( "Failed to create {}." , idl_dir_path. to_string_lossy( ) ) ) ?;
@@ -321,14 +328,7 @@ impl CanisterBuilder for MotokoBuilder {
321
328
. map ( |c| ( c. canister_id ( ) . to_text ( ) , c. get_name ( ) . to_string ( ) ) )
322
329
. collect ( ) ;
323
330
324
- std:: fs:: create_dir_all ( motoko_info. get_output_root ( ) ) . with_context ( || {
325
- format ! (
326
- "Failed to create {}." ,
327
- motoko_info. get_output_root( ) . to_string_lossy( )
328
- )
329
- } ) ?;
330
331
let cache = & self . cache ;
331
-
332
332
get_imports ( cache. as_ref ( ) , & motoko_info, & mut * pool. imports . borrow_mut ( ) , pool) ?;
333
333
334
334
self . do_build (
You can’t perform that action at this time.
0 commit comments