Skip to content

Commit

Permalink
fix: Avoid operator panic when Quarkus fast-jar directory is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed Oct 19, 2021
1 parent 9fdd5a4 commit 3d8ccea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/builder/quarkus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3d8ccea

Please sign in to comment.