#11075·dvc

pull: 当将 .dvc 文件目标与跟踪目录内的细粒度路径混合时,会发生 KeyError 系统崩溃(或默默跳过目标)

作者: sfgartland创建于 2026年7月31日更新于 2026年7月31日

Traceback (most recent call last): ... File "…/dvc/repo/pull.py", line 42, in pull File "…/dvc/repo/checkout.py", line 160, in checkout _check_can_delete(diff.files_delete, new, self.root_dir, self.fs) File "…/dvc/repo/checkout.py", line 91, in _check_can_delete cache_fs, cache_path = index.storage_map.get_cache(entry) File "…/dvc_data/index/index.py", line 519, in get_cache File "…/dvc_data/index/index.py", line 508, in get_storage info = self[entry.key] File "…/dvc_data/index/index.py", line 446, in getitem KeyError: ('datadir', 'f1.txt')