-
Notifications
You must be signed in to change notification settings - Fork 10
updater fails silently if curent.Signed.Version < previous #9
Comments
This is the actual error. (it's happening because my roots are different from what's in the mirror)
btw, there's a lot of indirection happening there. |
That code is looking to see if the version of the targets role that we got from notary, is greater than the version we have in our local TUF repo. If the targets role from notary is the same as the targets role in our local repo, we don't return an error, and the stagedPath is an empty string because there is nothing new to download. |
Ok, but my local repo files are signed by completely different notary server and the target I'm looking for doesn't match what is in the remote. I had to generate brand new roots when I was setting up a test. |
I hit another edge case with this where both previous and current version are the same according to the metadata, but there are 0 versions downloaded. locally. How can we handle the case where there have been 0 updates according to the files in |
in tuf/tuf.go
This code returns an empty string every single time because I have a misconfiguration in my notary setup.
If this is not a valid state, the updater should blow up instead.
The text was updated successfully, but these errors were encountered: