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
To roll back a release, we can call tufup targets remove-latest.
This takes care of the following:
remove the target entries for the latest release from targets.json
remove the actual target files from the repository's targets dir
re-sign targets.json, snapshot.json, and timestamp.json
In some cases, we may have already removed the target files, or we are reconstructing a repo just to update the metadata, and do not want to download the actual target files.
However, if the target files are not present, the remove-latest command fails with a FileNotFoundError.
A workaround is to create an empty "dummy" file at the specified path, but that is inconvenient.
To make the command more robust, we should catch the FileNotFoundError, show a warning, and continue with the metadata update.
The text was updated successfully, but these errors were encountered:
To roll back a release, we can call
tufup targets remove-latest
.This takes care of the following:
targets.json
targets
dirtargets.json
,snapshot.json
, andtimestamp.json
In some cases, we may have already removed the target files, or we are reconstructing a repo just to update the metadata, and do not want to download the actual target files.
However, if the target files are not present, the remove-latest command fails with a
FileNotFoundError
.A workaround is to create an empty "dummy" file at the specified path, but that is inconvenient.
To make the command more robust, we should catch the
FileNotFoundError
, show a warning, and continue with the metadata update.The text was updated successfully, but these errors were encountered: