From 881f02b21325d060a8eeb4fba76065ffb49dde62 Mon Sep 17 00:00:00 2001 From: Alexander Jung Date: Thu, 21 Nov 2024 17:09:09 +0100 Subject: [PATCH] fix(pkg): Prioritize kernel packaging This commit re-orders the kernel packager to be first such that it can be used in the context of an existing working directory. Since the kernel is a known flag, we can safely assume that the user knows what they are doing and can allow them to manipulate the package manager directly. Signed-off-by: Alexander Jung --- internal/cli/kraft/pkg/packager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/kraft/pkg/packager.go b/internal/cli/kraft/pkg/packager.go index 518fa0ad1..ab5bb69d4 100644 --- a/internal/cli/kraft/pkg/packager.go +++ b/internal/cli/kraft/pkg/packager.go @@ -34,9 +34,9 @@ type packager interface { // is used with the controller. func packagers() []packager { return []packager{ + &packagerCliKernel{}, &packagerKraftfileUnikraft{}, &packagerKraftfileRuntime{}, - &packagerCliKernel{}, &packagerDockerfile{}, } }