-
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
dvc list
: handle local repos differently?
#3590
Comments
Hi @ahmed-shariff ! dvc list expects to receive a URL to a git repo, which |
I see. Thank you for the clarification. |
To be honest I think it makes sense to handle this as a special case:
@iterative/engineering @casperdcl thoughts? (reopening, since it's annoying to remember the special syntax when I deal with the local repo, and other users were caught by surprise) |
dvc list
from project subdirectory throws errordvc list
: handle local repos differently?
@shcheklein I agree |
I'm using a local remote and I receive the same error when running For reference the "local remote" is actually a mounted network drive.
|
Hi @jamessergeant, |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
For the record: we are no longer cloning local repos, opening them directly instead. The only thing left is to make the CLI convenient for local use. E.g.
it is a bit odd from the CLI argument semantics, as it will have to rely on some heuristics, but still should be pretty convenient. Alternative might be to make the url explicit, similar to early |
Current CLI:
and with the proposed heuristics it will be:
and if
a problem that we are creating here for future us - not being able to accept multiple targets (same problem as we have right now in list/get/import but now worse). An explicit |
I'm all for unifying list, get, import UI
Not seeing a need to list multiple targets. Maybe get/import but what about using the import-url interface instead, where BTW is this issue solved/outdated? |
@jorgeorpinel Doesn't work with git urls.
Not the last part of it regarding handling local path as a target. Hence my questions. |
That's my initial thought. Are we aware of a need for this? If this was a new command, I'd prefer
By locally, you mean from inside the repo itself? I can't imagine |
@dberenbaum No requests or anything yet. Just looking in the possible future 🙂
Yep, from within the project or from another local project. Btw, another interesting confusion is that people tend to use Anyway, a quick, local and intuitive solution is to go with that |
In short, make For the future, if |
Getting back to this (as I'm playing more with it). It would significantly improve usability of the E.g. I was trying to see what outputs exist in the
It returns root:
Trying:
Also returns root.
Fails:
Also fails and so on ... to be honest, I'm lost how can I list them at this point ... looks there are a few bugs + this behavior that is inconsistent depending on the (path, cwd) pair |
I think this will be also part of the making |
The workaround for now is to do |
Hi, any update on dvc list for the already cloned repo? It still retuns the project's root. |
@machalx No updates so far, unfortunately 🙁 |
Hi, Thanks for your work on dvc. I have a related question: I'm trying to use
Has there been work done on allowing to use dvc get without git? I saw people wondering about use cases: I want to use dvc to download some files during runtime of a docker container, at which point I have no git credentials. Ideally I would just use boto3, but at the moment I'm not sure how to reconstruct the path to the file I want to download. |
You should be able to list the contents of the relative path now although the first argument will still be interpreted as the repo url (like |
I'll close this for now. |
When I run the command
dvc list .
from any sub-directory of the project I get the following error:Though it works when executed from the root directory of the project
DVC: 0.91.1 (arch linux;pip)
UPDATED (@shcheklein):
repurposed it a bit - #3590 (comment)
The text was updated successfully, but these errors were encountered: