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

reporegistry: add new LoadAllRepositoriesFromFS and use in tests #1038

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Nov 12, 2024

This commit is a (hopefully) less controversial version of: #1037

Here only a new helper to load repository information from an fs.FS is added and only used for loading the test repositories.

This will help to have a single test repository that can be embedded accross osbuild-composer, image-builder and images.

It also removes the public "NewTestedDefault()" in favor of a new testrepos.New() helper so that the reporegistry only has non-test API left.

[maybe this should be split into two commits actually]

This will allow me to use the test repos in the new image-builder-cli repo without the need to copy/import files from another git repo.

This commit is a (hopefully) less controversial version of:
osbuild#1037

Here only a new helper to load repository information from an
`fs.FS` is added and only used for loading the test repositories.

This will help to have a single test repository that can be
embedded accross osbuild-composer, image-builder and images.

It also removes the public "NewTestedDefault()" in favor of a
new `testrepos.New()` helper so that the `reporegistry` only
has non-test API left.
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