Skip to content

dvc import ignores cache and downloads from remote #9385

@johnyaku

Description

@johnyaku

Bug Report

dvc import ignores cache and downloads from remote

Description

I'm using dvc import to import some files that I know are already in an external shared cache (which is also the cache directory for the current project).

dvc downloads the imported files rather than simply sym-linking to the cache

Reproduce

  1. create external cache directory
  2. create project that uses this external directory as its cache directory
  3. git push the config
  4. dvc import some data from a registry but don't git push the resulting .dvc files
  5. delete the project directory but not the external cache
  6. recreate the project directory by recloning a new instances (this will include the config from 3 above)
  7. dvc import the same data again

Expected

Expected dvc to create symlinks to the external cache when the files were already there.

Environment information

Observed this bug with dvc 2.53 and 2.55.
dvc 2.39 works as expected

Metadata

Metadata

Assignees

Labels

A: data-syncRelated to dvc get/fetch/import/pull/pushp1-importantImportant, aka current backlog of things to doregressionOhh, we broke something :-(

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions