@@ -21,8 +21,7 @@ pub(crate) struct Justfile<'src> {
2121 pub ( crate ) groups : Vec < StringLiteral < ' src > > ,
2222 #[ serde( skip) ]
2323 pub ( crate ) loaded : Vec < PathBuf > ,
24- #[ serde( skip) ]
25- pub ( crate ) modulepath : Modulepath ,
24+ pub ( crate ) module_path : Modulepath ,
2625 pub ( crate ) modules : Table < ' src , Self > ,
2726 #[ serde( skip) ]
2827 pub ( crate ) name : Option < Name < ' src > > ,
@@ -142,7 +141,7 @@ impl<'src> Justfile<'src> {
142141 ) ?;
143142
144143 let scope = scope_arena. alloc ( scope) ;
145- scopes. insert ( self . modulepath . clone ( ) , ( self , scope, dotenv) ) ;
144+ scopes. insert ( self . module_path . clone ( ) , ( self , scope, dotenv) ) ;
146145
147146 for module in self . modules . values ( ) {
148147 module. evaluate_scopes (
@@ -260,7 +259,7 @@ impl<'src> Justfile<'src> {
260259 Some ( HashSet :: new ( ) ) . as_ref ( ) ,
261260 ) ?;
262261
263- let ( _module, scope, dotenv) = scopes. get ( & self . modulepath ) . unwrap ( ) ;
262+ let ( _module, scope, dotenv) = scopes. get ( & self . module_path ) . unwrap ( ) ;
264263 let scope = scope. child ( ) ;
265264
266265 command. export ( & self . settings , dotenv, & scope, & self . unexports ) ;
@@ -302,7 +301,7 @@ impl<'src> Justfile<'src> {
302301 Some ( & variable_references) ,
303302 ) ?;
304303
305- let scope = scopes. get ( & module. modulepath ) . unwrap ( ) . 1 ;
304+ let scope = scopes. get ( & module. module_path ) . unwrap ( ) . 1 ;
306305
307306 if let Some ( variable) = variable {
308307 print ! ( "{}" , scope. value( variable) . unwrap( ) ) ;
@@ -601,7 +600,7 @@ impl<'src> Justfile<'src> {
601600 while let Some ( current) = stack. pop ( ) {
602601 for alias in current. aliases . values ( ) {
603602 if alias. is_public ( ) {
604- aliases. push ( ( alias, & current. modulepath ) ) ;
603+ aliases. push ( ( alias, & current. module_path ) ) ;
605604 }
606605 }
607606
0 commit comments