From 737cbf8800ee06dd8f30b4356596fa99e1ac2b1e Mon Sep 17 00:00:00 2001 From: MitaliBhalla Date: Mon, 13 Jul 2026 10:38:57 +0530 Subject: [PATCH] fix: replace abandoned golangci-lint install script in builder image The master-branch install.sh fails checksum verification; use the official golangci-lint.run URL and redeclare the version ARG after FROM. Co-authored-by: Cursor --- make.Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/make.Dockerfile b/make.Dockerfile index 41ec170f..1b0fff3f 100644 --- a/make.Dockerfile +++ b/make.Dockerfile @@ -2,11 +2,15 @@ ARG GOLANGCI_LINT_VERSION FROM registry.access.redhat.com/ubi8/ubi +ARG GOLANGCI_LINT_VERSION + RUN yum install -y ca-certificates git go-toolset make ENV GOPATH=/go ENV PATH="$GOPATH/bin:${PATH}" -RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GOPATH}/bin ${GOLANGCI_LINT_VERSION} +# Official install URL; the abandoned master-branch script fails checksum verification. +# https://golangci-lint.run/docs/welcome/install/local/#binaries +RUN curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b ${GOPATH}/bin ${GOLANGCI_LINT_VERSION} ADD https://password.corp.redhat.com/RH-IT-Root-CA.crt /etc/pki/ca-trust/source/anchors/ RUN update-ca-trust extract