debian-forge-composer/internal
Ondřej Budai ae2e549dd4 osbuild1/result: fix conversion of v1 result
Detecting if a result is in the v1 format using DisallowUnknownFields was
clever. However, the format of v1 result changed in the worst way at some
point in the past: A field (id) got added. Therefore, this was an unknown
field to osbuild-composer and it fall back to decoding the input as a v2
result which led to empty logs.

This commit reimplements the result schema check: The new format always
have a top-level type field, whereas the old format doesn't have it. The
new implementation uses this fact to distinguish between v1 and v2 format
of a result.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2021-03-19 18:50:31 +01:00
..
blueprint rhel84/grub2: set saved_entry 2021-02-20 20:01:15 +01:00
boot internal/boot/azure: set storage account 2021-03-06 15:40:48 +00:00
client test: Add tests for trying to override a system source repo 2021-01-29 08:25:23 -08:00
cloud/gcp cloud-cleaner: clean up GCP Storage objects based on metadata 2021-03-15 16:48:40 +00:00
cloudapi distro: move Registry to its own distroregistry package 2021-03-12 08:29:30 +01:00
common weldr: move common.ComposeState to weldr 2020-11-09 14:17:19 +01:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk osbuild: rename package to osbuild1 2021-03-17 18:12:17 +00:00
distro distro/rhel84: use user ref for commits 2021-03-18 20:06:25 +00:00
distroregistry distroregistry/test: add test for GetDistro 2021-03-12 08:29:30 +01:00
jobqueue jobqueue: Replace JobArgs() with Job() 2021-01-19 10:37:51 +01:00
jsondb jsondb: Allow passing nil as document to Read() 2020-05-13 16:45:09 +02:00
kojiapi osbuild: rename package to osbuild1 2021-03-17 18:12:17 +00:00
mocks distro: move Registry to its own distroregistry package 2021-03-12 08:29:30 +01:00
osbuild1 osbuild1/result: fix conversion of v1 result 2021-03-19 18:50:31 +01:00
osbuild2 osbuild1/result: fix conversion of success field from v2 2021-03-19 18:50:31 +01:00
rpmmd distro: introduce PackageSets 2021-03-10 11:52:05 +00:00
store rhel84: new image type: rhel-edge-installer 2021-03-17 18:12:17 +00:00
target target/azure: document what it does 2021-03-06 15:40:48 +00:00
test test: add arch to the generate test artifact names 2020-12-01 08:27:44 +01:00
upload internal: Move GCP library to internal/cloud 2021-03-15 16:48:40 +00:00
weldr distro: add URL to OSTreeImageOptions 2021-03-17 18:12:17 +00:00
worker osbuld-worker: call osbuild with --export flag 2021-03-17 18:12:17 +00:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00