debian-forge-composer/internal
Tom Gundersen d606c5195b store/json: marshal manifests as raw JSON
The manifests we support marshalling/unmarshalling in composer are a
subset of the ones supported by osbuild. osbuild needs to preserve
backwards compatibility, but composer only needs to be concerned with
producing valid manifests at a given time.

A problem with this is that when we marshal our manifests to disk, and
read them out with a future version of composer, we would have to make
sure that the serialization is compatible, or unmarshalling the entire
store will fail. This is what happened when commit 5938276d3b
changed the way we marshal the file source.

Improve on this by only dropping those composes from the store on
unmarshal, whose manifests we are no longer able to unmarshal.

In future commits we will drop that requirement too.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-06-03 00:30:01 +02:00
..
blueprint blueprint: DeepCopy() cannot fail 2020-05-18 11:50:15 +02:00
client tests: lorax-composer returns 2 errors for these tests 2020-05-28 08:28:11 +02:00
common common/ImageType: move to the store package 2020-05-18 11:50:15 +02:00
crypt crypt_test: don't run on macOS 2020-04-09 13:21:30 +02:00
distro distro/rhel8: add preliminary support for ppc64le and s390x 2020-05-28 07:34:48 +02:00
jobqueue jobqueue: allow canceling jobs 2020-05-13 16:45:09 +02:00
jsondb jsondb: Allow passing nil as document to Read() 2020-05-13 16:45:09 +02:00
mocks worker: introduce job artifact directory 2020-05-26 10:42:20 +02:00
osbuild osbuild: update files source for rhsm 2020-05-28 00:23:54 +02:00
rcm rpmmd/RepoConf: rename Id to Name 2020-05-28 00:23:54 +02:00
rpmmd rpmmd/FetchMedata: fix checksum map 2020-05-28 00:23:54 +02:00
store store/json: marshal manifests as raw JSON 2020-06-03 00:30:01 +02:00
target store: move queue out of the store 2020-05-08 14:53:00 +02:00
test test/helper: add comparison for ImageType objects 2020-05-18 11:50:15 +02:00
upload Let AWS figure out the image format during import 2020-06-02 22:00:05 +02:00
weldr tests: Add unit tests for compose/metadata and compose/results 2020-05-28 00:39:10 +02:00
worker worker: add JobArtifact() and DeleteJobArtifacts() 2020-05-27 16:16:05 +02:00