Skip to content

Commit

Permalink
feat(unikraft): Double register manifest provider to avoid problems
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc committed May 5, 2023
1 parent 20dcf23 commit 78772e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder/unikraft/driver_kraft_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 78772e8

Please sign in to comment.