You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A core design change in ngclient (compared to legacy) is that the updater only loads metadata in "dependency order": this means reloading e.g. root metadata after timestamp metadata is loaded is just not possible. This means that calling Updater.refresh() multiple times is not possible: if user wants to "load a new repository snapshot" they should create a new Updater*.
This leads to refresh() call becoming rather unnecessary: we can just run that automatically the first time get_targetinfo() is called. I don't want to remove refresh() from the API completely as it does do multiple http requests and the targets response could be large, so some clients might want to do refresh() explicitly. I do want to make calling refresh() optional.
*) we could make multiple refreshes work: it would just mean almost the same thing as creating a new Updater. The only thing that would be optimized is not reading root.json from disk
The text was updated successfully, but these errors were encountered:
A core design change in ngclient (compared to legacy) is that the updater only loads metadata in "dependency order": this means reloading e.g. root metadata after timestamp metadata is loaded is just not possible. This means that calling Updater.refresh() multiple times is not possible: if user wants to "load a new repository snapshot" they should create a new Updater*.
This leads to
refresh()
call becoming rather unnecessary: we can just run that automatically the first timeget_targetinfo()
is called. I don't want to removerefresh()
from the API completely as it does do multiple http requests and the targets response could be large, so some clients might want to dorefresh()
explicitly. I do want to make callingrefresh()
optional.This is the last part of #1580.
*) we could make multiple refreshes work: it would just mean almost the same thing as creating a new Updater. The only thing that would be optimized is not reading root.json from disk
The text was updated successfully, but these errors were encountered: