Skip to content

dvc: adding external file through a symlink to a directory #1648

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

Closed
efiop opened this issue Feb 21, 2019 · 5 comments
Closed

dvc: adding external file through a symlink to a directory #1648

efiop opened this issue Feb 21, 2019 · 5 comments
Assignees
Labels
bug Did we break something?

Comments

@efiop
Copy link
Contributor

efiop commented Feb 21, 2019

https://discordapp.com/channels/485586884165107732/485596304961962003/548151166706647064

#!/bin/bash

mkdir dvc_example
cd dvc_example

# Create data dir
mkdir data
echo "data" >> data/data_file

mkdir my_repo
cd my_repo
ln -s ../data .

git init
dvc init

dvc add -v data/data_file

@ghost
Copy link

ghost commented Feb 21, 2019

@efiop , is this a bug or a feature request?

@efiop efiop added the bug Did we break something? label Feb 21, 2019
@efiop
Copy link
Contributor Author

efiop commented Feb 21, 2019

@MrOutis sorry, forgot to add a label. It is a bug.

@pared pared self-assigned this Feb 25, 2019
@efiop
Copy link
Contributor Author

efiop commented Feb 26, 2019

Related #774

@aro-max
Copy link

aro-max commented Jan 22, 2021

Hi all,
I would like to add an external directory defined by a symlink. But it seems it is not supported :
dvc add --external link_to_dir

It will allow abstracting the local dir where I put my data (raid). The other project contributors don't have a raid disk on their machine. They have a single disk.
What is the best way to manage this configuration?
Thanks

@efiop
Copy link
Contributor Author

efiop commented Jan 22, 2021

@alexandre-rouxel We don't recommend using --external. Seems like you are looking for straight-to-cache scenario #4520 , we are currentry working on it in a linked PR. For now the proper way to do it is to copy it to your dvc project and dvc add dir it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Did we break something?
Projects
None yet
Development

No branches or pull requests

3 participants