Skip to content

remote add: does not fail in non-DVC repo  #3191

@shcheklein

Description

@shcheklein

Version:

WARNING: Unable to detect supported link types, as cache directory '.dvc/cache' doesn't exist. It is usually auto-created by commands such as `dvc add/fetch/pull/run/import`, but you could create it manually to enable this check.
DVC version: 0.81.3+7f5e4a
Python version: 3.7.5
Platform: Darwin-18.2.0-x86_64-i386-64bit
Binary: False
Package: None

Reproduce:

mkdir project
cd project
dvc remote add storage gdrive://root/storage

should probably fail.

next command fails:

dvc remote modify storage gdrive_client_id test
ERROR: configuration error - config file error: unable to find remote section 'storage'

message should be different - no config file, or repo is not DVC, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions