Skip to content

fix(status): treat target as a dataset path for cloud instead of search path for dvcfiles#10849

Merged
skshetry merged 1 commit into
mainfrom
cloud-recursive
Aug 19, 2025
Merged

fix(status): treat target as a dataset path for cloud instead of search path for dvcfiles#10849
skshetry merged 1 commit into
mainfrom
cloud-recursive

Conversation

@skshetry
Copy link
Copy Markdown
Collaborator

@skshetry skshetry commented Aug 19, 2025

Previously, recursive=True was the default for cloud status, causing the target to be interpreted as a search path for DVC files. This meant scanning all DVC files in the target directory and subdirectories, then checking cloud status for tracked datasets found in those files.

This change sets the default to recursive=False, so the target is treated as a dataset path and cloud status is checked only for the dataset tracked at that path.

The old behavior can be restored with the --recursive flag.

Closes #9336.

This flag was introduced in #3726, with what appears to be a bug where for the cloud status it was set to True.

…file search path

Previously, `recursive=True` was the default for cloud status, causing the target
to be interpreted as a search path for DVC files. This meant scanning all DVC
files in the target directory and subdirectories, then checking cloud status for
tracked datasets found in those files.

This change sets the default to `recursive=False`, so the target is treated as a
dataset path and cloud status is checked only for the dataset tracked at that
path.

The old behavior can be restored with the `--recursive` flag.
@github-project-automation github-project-automation Bot moved this to Backlog in DVC Aug 19, 2025
@skshetry skshetry added bugfix fixes bug A: status Related to the dvc diff/list/status labels Aug 19, 2025
@skshetry skshetry moved this from Backlog to Review In Progress in DVC Aug 19, 2025
@skshetry skshetry self-assigned this Aug 19, 2025
@skshetry skshetry enabled auto-merge (squash) August 19, 2025 06:13
@skshetry skshetry disabled auto-merge August 19, 2025 06:19
@skshetry skshetry merged commit 8504684 into main Aug 19, 2025
40 checks passed
@skshetry skshetry deleted the cloud-recursive branch August 19, 2025 06:19
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in DVC Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: status Related to the dvc diff/list/status bugfix fixes bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dvc status <path spec> : Respect --cloud flag

1 participant