File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -267,12 +267,13 @@ def _update_data_structures(
267267 seen : set [PathWithExtras ], # modified in place
268268 yaml : YAML ,
269269 is_nested : bool ,
270+ origin : Path | None = None ,
270271 verbose : bool = False ,
271272) -> None :
272273 if verbose :
273274 print (f"📄 Parsing `{ path_with_extras .path_with_extras } `" )
274275 data = _load (path_with_extras .path , yaml )
275- data ["_origin" ] = path_with_extras .path
276+ data ["_origin" ] = origin or path_with_extras .path
276277 datas .append (data )
277278 _move_local_optional_dependencies_to_local_dependencies (
278279 data = data , # modified in place
@@ -413,6 +414,7 @@ def _add_local_dependencies(
413414 yaml = yaml ,
414415 verbose = verbose ,
415416 is_nested = True ,
417+ origin = path_with_extras .path ,
416418 )
417419
418420
You can’t perform that action at this time.
0 commit comments