-
Notifications
You must be signed in to change notification settings - Fork 4
Added an unsafe method for loading the tuf metadata on disk #87
Added an unsafe method for loading the tuf metadata on disk #87
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #87 +/- ##
==========================================
- Coverage 71.65% 71.43% -0.23%
==========================================
Files 10 10
Lines 1976 2013 +37
==========================================
+ Hits 1416 1438 +22
- Misses 453 463 +10
- Partials 107 112 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@kommendorkapten - Thanks for this 💯 What would you think about:
Other:
|
Yeah, having this as a setting seems more nice. |
@rdimitrov updated to use a parameter instead. Note that calling |
If you think this is good, I'll start to work on getting the tests updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
While doing the tests can you verify if this option works together with DisableLocalCache
and if they affect each other, add a check that we cannot set both at the same time?
Is this really needed?
I think it makes sense to allow them together, as even with |
Actually I did not put a lot of thought on it while I asked that, just thought to bring that up to you so if someone enables both it doesn't accidentally interfere with the behaviour of this patch 👍 |
Signed-off-by: Fredrik Skogman <[email protected]>
…method. Signed-off-by: Fredrik Skogman <[email protected]>
Signed-off-by: Fredrik Skogman <[email protected]>
Signed-off-by: Fredrik Skogman <[email protected]>
Signed-off-by: Fredrik Skogman <[email protected]>
Signed-off-by: Fredrik Skogman <[email protected]>
b1065ac
to
19d9861
Compare
…v#87) * Added an unsafe method for loading the tuf metadata on disk Signed-off-by: Fredrik Skogman <[email protected]> * Feedback from review. Added a config parameter instead of a separate method. Signed-off-by: Fredrik Skogman <[email protected]> * Added unit tests for unsafe local mode Signed-off-by: Fredrik Skogman <[email protected]> * DEBUG: remove added tests Signed-off-by: Fredrik Skogman <[email protected]> * comment out correct test Signed-off-by: Fredrik Skogman <[email protected]> * Uncommented tests cases and disabled go caching Signed-off-by: Fredrik Skogman <[email protected]> --------- Signed-off-by: Fredrik Skogman <[email protected]>
No description provided.