debian-forge-composer/internal/distro
Tomas Hozza 351bb69d2b distro: use reflection in ImageConfig.InheritFrom()
As it turned out, people make mistakes and forget to write some parts of
code, unless a unit test screams at them. This is true for the
`InheritFrom()` method, which is not handling all members of the
`ImageConfig` structure.

Use reflection, instead of inheriting from each specific hard-coded
structure member. This will make the implementation future-proof in case
the `ImageConfig` structure is extended with additional members.
2022-09-06 14:43:24 +02:00
..
distro_test_common distro: add containers arg to ImageType.Manifest 2022-07-21 13:32:07 +02:00
fedora distro: use pointers for basic types in ImageConfig 2022-09-06 14:43:24 +02:00
rhel7 distro: use pointers for basic types in ImageConfig 2022-09-06 14:43:24 +02:00
rhel8 distro: use pointers for basic types in ImageConfig 2022-09-06 14:43:24 +02:00
rhel9 distro: use pointers for basic types in ImageConfig 2022-09-06 14:43:24 +02:00
test_distro distro: add containers arg to ImageType.Manifest 2022-07-21 13:32:07 +02:00
distro.go Add the rhsm.facts stage. 2022-08-25 18:56:35 +02:00
distro_test.go distro/fedora: drop package set name translations 2022-07-04 23:04:29 +01:00
image_config.go distro: use reflection in ImageConfig.InheritFrom() 2022-09-06 14:43:24 +02:00
image_config_test.go distro: use pointers for basic types in ImageConfig 2022-09-06 14:43:24 +02:00