-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
output: use remote kwarg instead of odb #6600
Conversation
@@ -849,7 +849,8 @@ def get_dir_cache(self, **kwargs): | |||
try: | |||
objects.check(self.odb, obj) | |||
except FileNotFoundError: | |||
remote = self.repo.cloud.get_remote_odb(self.remote) | |||
if self.remote: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is getting irritating, will need to look into getting rid of get_dir_cache
soon. 😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't -r <remote>
be of higher priority?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My second choice would be to skip the remotes not matching with -r <remote>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though, for dir
cache, I would not care that much. 🤷🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remote:
has higher prioirity than -r
, as documented in https://github.com/iterative/dvc.org/pull/2761/files . Similar how dvc import
ed remotes are not overriden by dvc pull -r
Co-authored-by: Dave Berenbaum <dave@iterative.ai>
for more information, see https://pre-commit.ci
ci failure is unrelated |
Fixes #6596