diff --git a/Dockerfile b/Dockerfile index 97d45fd..54593c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN microdnf -y install git &&\ FROM quay.io/konveyor/static-report as static-report # Build the manager binary -FROM golang:1.18 as builder +FROM golang:1.19 as builder WORKDIR /workspace # Copy the Go Modules manifests diff --git a/cmd/settings.go b/cmd/settings.go index 6575085..d79a027 100644 --- a/cmd/settings.go +++ b/cmd/settings.go @@ -1,6 +1,7 @@ package cmd import ( + "errors" "os" "os/exec" @@ -28,7 +29,10 @@ type Config struct { func (c *Config) Load() error { envValue := os.Getenv("PODMAN_BIN") if envValue == "" { - podmanPath, _ := exec.LookPath("podman") + podmanPath, err := exec.LookPath("podman") + if err != nil && errors.Is(err, exec.ErrDot) { + return err + } if podmanPath != c.PodmanBinary && (podmanPath != "" || len(podmanPath) > 0) { os.Setenv("PODMAN_BIN", podmanPath) }