-
Notifications
You must be signed in to change notification settings - Fork 3
support consistent targets #12
Comments
@MVrachev any interest in contributing this since you did the client side recently? |
they do work:
|
I've avoided adding this feature because everytime I try it seems like a clear abstraction violation: the repository class should not deal with actual target files (apart from figuring out what they hash into). Yet, to work in the simple demo case,
so I'm thinking of possibly moving all of git related functionality up to CLI, out of the Repo class: maybe Repo does not need to know about git and it can just give enough info about what's happening in the repository to CLI for the CLI to handle both git and the prefixed targets. This should make the abstraction cleaner (the next step after this would be removing file access from Repo as well), and move more of the ugly subprocess code to CLI |
Nothing creates the hash prefixed target files currently, but ngclient now expects them (theupdateframework/python-tuf#1501) if repository has enabled consistent_snapshot.
tufrepo currently does not handle target files in any way (they could be on another server) and I think that makes sense... but being able to create these hash prefixed symlinks would be nice. That could even be the default.
add-target
) should create the symlinks for the files (in the same directory that the files are in)?The text was updated successfully, but these errors were encountered: