debian-forge-composer/internal
Lars Karlitski 77556973cc distro: don't expose repositories in distro objects
Mixing the way to build a distribution with where to get the source
packages from is wrong: it breaks pre-release repos, local mirrors, and
other use cases. To accommodate those, we introduced
`/etc/osbuild-composer/repositories`.

However, that doesn't work for the RCM API, which receives repository
URLs to use from outside requests. This API has been wrongly using the
`additionalRepos` parameter to inject those repos. That's broken,
because the resulting manifests contained both the installed repos and
the repos from the request.

To fix this, stop exposing repositories from the distros, but require
passing them on every call to `Manifest()`. This makes `additionalRepos`
redundant.

Fixes #341
2020-03-18 20:46:28 +01:00
..
blueprint distro.Manifest: take Customizations rather than Blueprint as argument 2020-03-15 23:48:42 +01:00
client distro: don't expose repositories in distro objects 2020-03-18 20:46:28 +01:00
common store: move ComposeRequest to the store package 2020-03-12 20:01:24 +01:00
compose job: pass manifest instead of pipeline to osbuild 2020-03-03 22:25:49 +01:00
crypt crypt: make it possible to compile and test on macOS 2020-01-30 14:42:25 +01:00
distro distro: don't expose repositories in distro objects 2020-03-18 20:46:28 +01:00
jobqueue store/jobqueue: remove distro field from jobs 2020-03-18 12:24:20 +01:00
mocks store: don't keep a "default" distro 2020-03-18 08:33:42 +01:00
osbuild stage: make the unmarshalling error more verbose 2020-03-17 12:21:01 +01:00
rcm rcm: use same function as weldr for pushing composes 2020-03-18 08:33:42 +01:00
rpmmd rpmmd: drop the Name attribute from RepoConfig 2020-03-15 23:48:42 +01:00
store store/jobqueue: remove distro field from jobs 2020-03-18 12:24:20 +01:00
target targets/local: drop Location field 2020-02-14 11:53:38 +01:00
test api: implement /compose/log 2019-12-20 11:43:39 +01:00
upload lint: fix unhandled errors 2020-03-02 14:28:55 +01:00
weldr distro: don't expose repositories in distro objects 2020-03-18 20:46:28 +01:00
weldrcheck weldrcheck: Convert to go testing framework + testify/require 2020-03-17 21:10:00 +01:00