diff --git a/Dockerfile b/Dockerfile index ef5455d..e48fc23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -259,7 +259,7 @@ RUN for i in 1 2 3 4 5; do \ && go install honnef.co/go/tools/cmd/staticcheck@latest \ && break || { echo "go install attempt $i failed, sleeping $((i*10))s"; sleep $((i*10)); }; \ done; \ - command -v govulncheck && command -v staticcheck || { echo "go install failed after 5 attempts"; exit 1; } + test -x "$GOPATH/bin/govulncheck" && test -x "$GOPATH/bin/staticcheck" || { echo "go install failed after 5 attempts"; exit 1; } # GOPATH already set above; PATH handled by the final clean ENV at the # bottom (which includes /home/crafter/go/bin). No per-layer PATH ENV