osbuild / images

Image builder image definition library
Apache License 2.0
21 stars 49 forks source link

reporegistry: add NoReposLoadedError and use it #946

Open thozza opened 1 week ago

thozza commented 1 week ago

Add NoReposLoadedError custom error type for the case when any function that is supposed to load repository configs, does not load any. Use it in all functions that are directly loading repositories from configuration files.

I considered NoReposError name, but that could be later added for functions such as RepoRegistry.ReposBy...(), in case there are no repositories in the RepoRegistry for the given image type / arch.

This is a follow-up to https://github.com/osbuild/osbuild-composer/pull/4378