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
I would like to have a way of signaling that a particular mirror should not be used for metadata or should not be used for targets ('confined_target_dirs': [] does offer that, but only for targets). There's multiple ways to solve this: I'm open to suggestions.
The mirrors role (which is unrelated to this but deals with the same problem) solves the issue by having PATH_PATTERNS for both metadata and targets, but for this specific use case it would be enough if metadata_path and targets_path could be set to None. Then I could do this in pip:
Agreed, changing tuf.mirrors.get_list_of_mirrors to look for a dictionary field like the proposed metadata_path would be a small change and could be implemented in such a way as to not break existing users (i.e. using get() or catching a KeyError).
Activity
jku commentedon Jul 16, 2020
maybe look at #1077 at the same time?
joshuagl commentedon Jul 20, 2020
Agreed, changing
tuf.mirrors.get_list_of_mirrorsto look for a dictionary field like the proposedmetadata_pathwould be a small change and could be implemented in such a way as to not break existing users (i.e. usingget()or catching aKeyError).jku commentedon Sep 23, 2020
Actually the schema system does not make
Nonean option very easily I guess... but the whole key could be made optional.mirrors: Make targets_path and metadata_path optional