Skip to content

add: can't track --external output with rel path [qa] #4352

@jorgeorpinel

Description

@jorgeorpinel

Bug Report

File exists, seen here both as a relative and an absolute path:

λ ls ../data
../data
λ ls /c/Users/poj12/DVC-repos/data
/c/Users/poj12/DVC-repos/data

add --external doesn't work for the relative path, but does for the absolute one:

λ dvc add --external ../data
Adding...
ERROR: output '..\data' does not exist

λ dvc add --external /c/Users/poj12/DVC-repos/data
100% Add|███...

Is this expected? If so maybe should be mentioned in https://dvc.org/doc/user-guide/managing-external-data and https://dvc.org/doc/command-reference/add (--external option desc.) — pls xfer issue to dvc.org in that case.

Please provide information about your setup

λ dvc version
DVC version: 1.4.0+dea195.mod
---------------------------------
Platform: Python 3.8.2 on Windows-10-10.0.18362-SP0
Supports: All remotes
Cache types: hardlink, symlink
Cache directory: NTFS on C:\
Workspace directory: NTFS on C:\
Repo: dvc, git

Git Bash on Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDid we break something?p2-mediumMedium priority, should be done, but less important

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions