debian-forge-composer/internal/distro
Achilleas Koutsou 8a0f3ce4a3 distro: use the ostree URL when checking options
The checksum won't be resolved before initialising the manifest (where
checkOptions() is called), so we can't rely on it for validating
options.  Instead, we can just make sure that the URL was provided, when
required by the image type.

Also, if a parent ref is specified in the options, a URL *must* be
specified regardless of image type, so verify this combination here
 and return the same error message that is returned from
 ostree.Resolve().

The parameter combination check will soon be removed from the
ostree.Resolve() function.
2023-06-14 11:19:29 +02:00
..
distro_test_common ostree: replace FetchChecksum with ParentRef on ostree.ImageOptions 2023-06-14 11:19:29 +02:00
fedora distro: use the ostree URL when checking options 2023-06-14 11:19:29 +02:00
rhel7 distro: remove PackageSets() from the ImageType interface 2023-05-31 16:40:07 +02:00
rhel8 distro: use the ostree URL when checking options 2023-06-14 11:19:29 +02:00
rhel9 distro: use the ostree URL when checking options 2023-06-14 11:19:29 +02:00
test_distro distro: remove PackageSets() from the ImageType interface 2023-05-31 16:40:07 +02:00
distro.go distro: remove unused MakePackageSetChains() function 2023-06-14 11:19:29 +02:00
distro_test.go ostree: replace FetchChecksum with ParentRef on ostree.ImageOptions 2023-06-14 11:19:29 +02:00
image_config.go subscription: new package for subscription options 2023-05-31 16:40:07 +02:00
image_config_test.go common: merge all *ToPtr methods to one generic ToPtr 2023-01-09 14:03:18 +01:00