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

main: add new experimental --use-librepo switch #786

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Jan 8, 2025

[draft as this needs lots of stuff first]

This commit adds a new --use-librepo switch that will
enable librepo based downloading so that people can play with
the new backend.

mvo5 added 5 commits January 8, 2025 08:42
This was generated using:
```
$ go mod edit -replace github.com/osbuild/images=github.com/mvo5/images@librepo-sources-osbuild1974
$ go mod tidy
```
This commit adds a new `--use-librepo` switch that will
enable librepo based downloading so that people can play with
the new backend.
This is a test commit that switches all tests to the librepo
based downloading. Obviously this needs to be more nuanced
(well, maybe) and we would make this part of the testcases.

Or we just switch everything once osbuild supports librepo
because we suffer from the flaky downloads and osbuild will
be up-to-date via the container.
This commit adds a workaround for the librepo mirror IDs:

osbuild librepo expects the mirrors to be encoded as
hex-digests - osbuild-depsolve-dnf gives us this for some
repos but when using "SetRootDir" (as we do here) it just gives
us the pipeline names, we probably want to fix this either
in osbuild:librepo (relaxing the rules) or "images" (always
hash the id again) but for now to it here to get some testing.
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.

1 participant