From 78772e8ace263452fb26e78cdfc664a52facbd40 Mon Sep 17 00:00:00 2001 From: Cezar Craciunoiu Date: Fri, 5 May 2023 19:31:25 +0300 Subject: [PATCH] feat(unikraft): Double register manifest provider to avoid problems Signed-off-by: Cezar Craciunoiu --- builder/unikraft/driver_kraft_init.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/unikraft/driver_kraft_init.go b/builder/unikraft/driver_kraft_init.go index d69af90..a12f022 100644 --- a/builder/unikraft/driver_kraft_init.go +++ b/builder/unikraft/driver_kraft_init.go @@ -22,7 +22,7 @@ import ( "kraftkit.sh/cmd/kraft/stop" "kraftkit.sh/cmdfactory" "kraftkit.sh/config" - _ "kraftkit.sh/manifest" + "kraftkit.sh/manifest" "kraftkit.sh/oci" "kraftkit.sh/packmanager" ) @@ -53,6 +53,7 @@ func KraftCommandContext() context.Context { ctx = config.WithConfigManager(ctx, cfgm) + _ = packmanager.RegisterPackageManager(manifest.ManifestFormat, manifest.NewManifestManager) _ = packmanager.RegisterPackageManager(oci.OCIFormat, oci.NewOCIManager) pm, err := packmanager.NewUmbrellaManager(ctx) if err != nil {