debian-forge-composer/internal/weldr
Tomáš Hozza 1f590aa232 Weldr/ComposeRequest: OSTree options nil if not set
Previously, the `OSTree` property in the Weldr API `ComposeRequest`
struct was not a pointer to the `ostree.ImageOptions` type. As a result,
it was initialized to an empty struct, even if not set in the client API
call.

As a result, the `OSTree` property in the `distro.ImageOptions` was
always not `nil`, when initializing the osbuild manifest. However, after
a change in `osbuild/images` [0], providing OSTree options for
non-OSTree image types is no longer considered valid. This caused a
failure to submit a new compose for any non-OSTree image type.

Change the `OSTree` property in Weldr `ComposeRequest` to be a pointer
and mark it as optional.

[0] https://github.com/osbuild/images/pull/1071

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2024-12-09 09:46:54 +01:00
..
api.go Weldr/ComposeRequest: OSTree options nil if not set 2024-12-09 09:46:54 +01:00
api_test.go internal/weldr: adapt to aws sdk v2 2024-08-20 15:32:40 +02:00
compose.go weldr: rename C{Waiting,Running,Finished,Failed} 2020-11-09 14:17:19 +01:00
compose_test.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
json.go cloudapi: Add module_hotfixes flag 2023-12-20 09:02:06 +01:00
responses_test.go weldr: update expected error messages 2024-07-04 19:01:07 +02:00
upload.go osbuild-worker: use the new ostree resolver API 2024-11-07 16:17:56 +01:00
util.go composer/job-queue: add scaffolding for the job queue API 2019-09-26 19:53:06 +02:00