From 3d8ccea0c516abb3feb43ae7967b6721a65bdec3 Mon Sep 17 00:00:00 2001 From: Antonin Stefanutti Date: Tue, 19 Oct 2021 16:52:59 +0200 Subject: [PATCH] fix: Avoid operator panic when Quarkus fast-jar directory is empty --- pkg/builder/quarkus.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/builder/quarkus.go b/pkg/builder/quarkus.go index cdec940e32..aa5276397a 100644 --- a/pkg/builder/quarkus.go +++ b/pkg/builder/quarkus.go @@ -217,6 +217,10 @@ func ProcessQuarkusTransitiveDependencies(mc maven.Context) ([]v1.Artifact, erro // Discover application dependencies from the Quarkus fast-jar directory tree err := filepath.Walk(quarkusAppDir, func(filePath string, info os.FileInfo, err error) error { + if err != nil { + return err + } + fileRelPath := strings.Replace(filePath, quarkusAppDir, "", 1) if !info.IsDir() {