Skip to content

dvc update after importing an older version of a file #3336

@elleobrien

Description

@elleobrien

I'm working with this repository to import a data file (there are currently two tags at different commits, which you can see in "releases")

when i do

$ dvc import --rev v.20.0 https://github.com/iterative/aita_dataset aita_clean.csv
I am able to download the first tagged version of the dataset. Then when I want to update the data file to its most recent version, I run

$ dvc update aita_clean.csv.dvc

And nothing happens (the file size is unchanged, think checksum is the same).

If, however, I go into aita_clean.csv.dvc and remove the line rev:v20.0 in the info below:

locked: true
deps:
- path: aita_clean.csv
  repo:
    url: https://github.com/iterative/aita_dataset
    rev: v.20.0
    rev_lock: c09235672eb7720f09e1cc4cc055f5c4f3f5286d
outs:
- md5: 0e5d7dbfc480cf7dcfaf5e341c3dde05
  path: aita_clean.csv
  cache: true
  metric: false
  persist: false

I am then able to successfully run dvc update and get the latest version of the file.

It seems that, as long as I used dvc import to get an older file version, dvc update considers it to be current? Is that by design?

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responsewe are waiting for your reply, please respond! :)questionI have a question?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions