Skip to content

Commit 1e72d06

Browse files
committed
original origin
1 parent 54e7a77 commit 1e72d06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unidep/_dependencies_parsing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)