-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dvc update
after importing an older version of a file
#3336
Comments
@andronovhopf Did the tag move though? When you remove |
@efiop I'm pretty sure the tag didn't move- since the tags are on the default branch (master), not sure I understand I'm still learning about tags- I think I assumed that, since the tags are all on the master branch, I could just "zoom forward" in time to the latest commit from a previous tag? |
@andronovhopf Ah, got it :) So tag is just an alias for specific commit. If it didn't move, it means that commit is the same and so
|
Yep, I used `dvc import` to just get the latest tag. So I'm not blocked
from working :) Just wanted to make sure that this was behaving like it
should be.
In particular, what I was hoping was for `dvc update` to whatever the
latest commit on the branch was- even if that commit doesn't have a tag,
since `dvc update --rev v.20.1` might not be the most recent commit any
longer. Does that make sense?
…On Fri, Feb 14, 2020 at 4:15 PM Ruslan Kuprieiev ***@***.***> wrote:
@andronovhopf <https://github.com/andronovhopf> For the record: #2849
<#2849> . Escalated the priority
there. Also here is some additional info on the very similar case #2696
<#2696>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3336?email_source=notifications&email_token=AHCXB5BJIJCPQFYRZGQYTWDRC4X2RA5CNFSM4KVRIMYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL23NZA#issuecomment-586528484>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHCXB5FBBA5JV72R7M4OXRLRC4X2RANCNFSM4KVRIMYA>
.
|
I do understand what you mean, but technically tag might belong to multiple branches, so we don't really know which branch to follow. I suppose you were trying to emulate this type of workflow:
And that is a totally valid case that will work as is right now, but the way you emulate it is incorrect, because you don't move tags, so commit stays the same. |
Ah, I may have to learn some more about tags (I didn't realize that a tag
could belong to multiple branches- I see how that would make this
ambiguous). Thanks!
…On Fri, Feb 14, 2020 at 4:37 PM Ruslan Kuprieiev ***@***.***> wrote:
In particular, what I was hoping was for dvc update to whatever the
latest commit on the branch was- even if that commit doesn't have a tag,
since dvc update --rev v.20.1 might not be the most recent commit any
longer. Does that make sense?
I do understand what you mean, but technically tag might belong to
multiple branches, so we don't really know which branch to follow. I
suppose you were trying to emulate this type of workflow:
1. work on aita_dataset (say we are on master and on commit 1111)
2. import aita_clean.csv from aita_dataset from master
3. works some more on aita_dataset, so that aita_dataset changes (we
are on master, but now on commit 2222)
4. update aita_clean.csv to 2222
And that is a totally valid case that will work as is right now, but the
way you emulate it is incorrect, because you don't move tags, so commit
stays the same.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3336?email_source=notifications&email_token=AHCXB5ACUUZ7JQIILQSU63LRC42NPA5CNFSM4KVRIMYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL24MLA#issuecomment-586532396>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHCXB5EU4ECP4VA5XQFNN2TRC42NPANCNFSM4KVRIMYA>
.
|
@andronovhopf Sure, feel free to ping us about it 🙂 I'll close this ticket for now in favour of the ones mentioned above. Please feel free to reopen. |
@andronovhopf FYI: thanks to outstanding work by @skshetry 🎖️ , we now have |
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 linerev:v20.0
in the info below: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?The text was updated successfully, but these errors were encountered: