Hi,
I recently created a new repository and added a target file to it. However, when I tried to run the client to download the target file,
I encountered the following error:
File "/home/msatpathy/.local/lib/python3.8/site-packages/tuf/ngclient/updater.py", line 143, in refresh
self._load_root()
File "/home/msatpathy/.local/lib/python3.8/site-packages/tuf/ngclient/updater.py", line 334, in _load_root
self._trusted_set.update_root(data)
File "/home/msatpathy/.local/lib/python3.8/site-packages/tuf/ngclient/_internal/trusted_metadata_set.py", line 187, in update_root
raise exceptions.BadVersionNumberError(
tuf.api.exceptions.BadVersionNumberError: Expected root version 2 instead got version 1
When creating the repository, I set the "persistent snapshot" option to false. Unless the root metadata has expired or a key rotation is required,
I don't see why the root version needs to be incremented.
I would like to understand why the client should fail abruptly when it doesn't find the next version of root metadata during each refresh.
Could anyone please guide me on how to resolve this issue?