debian-forge-composer/internal
Lars Karlitski 17ca73ab14 osbuild-pipeline: validate distro when fetching it
We were verifying two things: if the passed distroArg exists in the
distribution mapping in common/types.go and if the it is an actually
registered distro. Since you cannot have distros registered that don't
correspond to a type, the first test is unnecessary.

Merge the two tests by moving the (much better) error message down into
the second test. This makes DistributionExists redundant, because
Registry.GetDistro() checks this implicitly.

Also, move ListDistributions() to the Registry object, because we want
to show distributions that are actually registered.

Add a test which checks that Registry.List() works and that all included
distributions register correctly.
2020-03-03 16:21:13 +01:00
..
blueprint Fix Blueprint Revision, it is an integer not a string 2020-03-03 12:21:40 +01:00
client fix linter errors 2020-03-03 14:26:13 +01:00
common osbuild-pipeline: validate distro when fetching it 2020-03-03 16:21:13 +01:00
compose tree-wide: format code with gofmt 2020-02-17 16:09:17 +01:00
crypt crypt: make it possible to compile and test on macOS 2020-01-30 14:42:25 +01:00
distro osbuild-pipeline: validate distro when fetching it 2020-03-03 16:21:13 +01:00
jobqueue distro: panic less often 2020-03-03 11:53:06 +01:00
mocks distro: panic less often 2020-03-03 11:53:06 +01:00
osbuild lint: fix gosimple/S1004 errors 2020-03-02 14:28:55 +01:00
rcm distro: panic less often 2020-03-03 11:53:06 +01:00
rpmmd rpmmd: pass in cache directory explicitly 2020-03-02 20:58:39 +01:00
store lint: fix unhandled errors 2020-03-02 14:28:55 +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 weldr: Return blueprint changes in descending timestamp order 2020-03-03 12:21:40 +01:00
weldrcheck fix linter errors 2020-03-03 14:26:13 +01:00