index: set source fs/path for import data index entries

This commit is contained in:
Peter Rowlands
2022-10-19 17:12:16 +03:00
committed by Ruslan Kuprieiev
parent bbaf57c5b2
commit 36f6f29ac8
+6 -1
View File
@@ -252,7 +252,7 @@ class Index:
if out.files:
out.obj = out.get_obj()
data_index[key] = DataIndexEntry(
entry = DataIndexEntry(
meta=out.meta,
obj=out.obj,
hash_info=out.hash_info,
@@ -260,6 +260,11 @@ class Index:
cache=out.odb,
remote=remote,
)
if out.stage.is_import and not out.stage.is_repo_import:
entry.fs = out.stage.deps[0].fs
entry.path = out.stage.deps[0].fs_path
entry.cache = out.odb
data_index[key] = entry
return dict(by_workspace)