Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mirrors support for URL SCMs #546

Merged
merged 12 commits into from
Jan 1, 2024
Merged

Conversation

jkloetzke
Copy link
Member

Fixes #360

This comes in handy if the file should be addressed relative to the user
home directory.
The validator must also return the validated data which might actually
have been mangled.
No change in functionality intended.
Instead of relying on the invoker class to catch the OSError, handle it
directly and show a proper error message.
Copy link

codecov bot commented Dec 31, 2023

Codecov Report

Attention: 43 lines in your changes are missing coverage. Please review.

Comparison is base (8a7fd6d) 88.38% compared to head (82fb116) 88.27%.

Files Patch % Lines
pym/bob/scm/url.py 70.34% 43 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #546      +/-   ##
==========================================
- Coverage   88.38%   88.27%   -0.12%     
==========================================
  Files          46       46              
  Lines       14543    14669     +126     
==========================================
+ Hits        12854    12949      +95     
- Misses       1689     1720      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Add the 'preMirror' and 'fallbackMirror' keywords to the user
configuration. SCMs can hook into these keywords to get their mirror
settings.
Iterate about all possible URLs when trying to download. The pre- and
fallback-mirror URLs will only be included if the SCM is deterministic,
though.
If a file was downloaded and matching mirrors have their 'upload'
attribute set to "true", upload the file to all such mirrors after the
integrity has been verified.
Instead of just returning the port as context manager object, return a
class with some statistics.
@jkloetzke jkloetzke merged commit ba73a63 into BobBuildTool:master Jan 1, 2024
9 of 11 checks passed
@jkloetzke jkloetzke deleted the mirrors branch January 1, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scm: add support for mirrors
1 participant