Skip to content

Commit

Permalink
deps: bump dvc-data to 2.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Aug 4, 2023
1 parent 9d1d51c commit 17baf0a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
9 changes: 8 additions & 1 deletion dvc/repo/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ def _collect_indexes( # noqa: PLR0913
max_size=max_size,
types=types,
)
indexes[idx.data_tree.hash_info.value] = idx.data["repo"]

def onerror(_entry, _exc):
pass

data = idx.data["repo"]
data.onerror = onerror

indexes[idx.data_tree.hash_info.value] = data
except Exception as exc: # pylint: disable=broad-except
collection_exc = exc
logger.exception("failed to collect '%s'", rev or "workspace")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies = [
"configobj>=5.0.6",
"distro>=1.3",
"dpath<3,>=2.1.0",
"dvc-data>=2.10.0,<2.11.0",
"dvc-data>=2.11.0,<2.12.0",
"dvc-http>=2.29.0",
"dvc-render>=0.3.1,<1",
"dvc-studio-client>=0.9.2,<1",
Expand Down
5 changes: 4 additions & 1 deletion tests/func/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,12 @@ def test_push_wildcard_from_bare_git_repo(

dvc_repo = make_tmp_dir("dvc-repo", scm=True, dvc=True)
with dvc_repo.chdir():
from dvc_data.index.index import DataIndexDirError

dvc_repo.dvc.imp(os.fspath(tmp_dir), "dirextra")

dvc_repo.dvc.imp(os.fspath(tmp_dir), "dir123")
with pytest.raises(DataIndexDirError):
dvc_repo.dvc.imp(os.fspath(tmp_dir), "dir123")


@pytest.mark.parametrize("dname", [".", "dir", "dir/subdir"])
Expand Down

0 comments on commit 17baf0a

Please sign in to comment.