From 4cc8db14b20a7de6770de199e0bb75826a35d59a Mon Sep 17 00:00:00 2001 From: Flo Date: Sat, 2 May 2026 16:31:49 +0200 Subject: [PATCH 1/2] Fix: Loading golangci-lint installation script from main branch instead of master --- src/go/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/go/install.sh b/src/go/install.sh index 4286c08a8..dd638c6ba 100755 --- a/src/go/install.sh +++ b/src/go/install.sh @@ -325,11 +325,11 @@ if [ "${INSTALL_GO_TOOLS}" = "true" ]; then # Install golangci-lint from precompiled binares if [ "$GOLANGCILINT_VERSION" = "latest" ] || [ "$GOLANGCILINT_VERSION" = "" ]; then echo "Installing golangci-lint latest..." - curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \ + curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh | \ sh -s -- -b "${TARGET_GOPATH}/bin" else echo "Installing golangci-lint ${GOLANGCILINT_VERSION}..." - curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \ + curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh | \ sh -s -- -b "${TARGET_GOPATH}/bin" "v${GOLANGCILINT_VERSION}" fi From a1610edaea5a96543d555a0adc3b259920cef2ad Mon Sep 17 00:00:00 2001 From: Flo Date: Sat, 2 May 2026 16:44:51 +0200 Subject: [PATCH 2/2] Apply suggestions from code review Use official url for the install-script Co-authored-by: Ludovic Fernandez --- src/go/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/go/install.sh b/src/go/install.sh index dd638c6ba..db0ac7977 100755 --- a/src/go/install.sh +++ b/src/go/install.sh @@ -325,11 +325,11 @@ if [ "${INSTALL_GO_TOOLS}" = "true" ]; then # Install golangci-lint from precompiled binares if [ "$GOLANGCILINT_VERSION" = "latest" ] || [ "$GOLANGCILINT_VERSION" = "" ]; then echo "Installing golangci-lint latest..." - curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh | \ + curl -fsSL https://golangci-lint.run/install.sh | \ sh -s -- -b "${TARGET_GOPATH}/bin" else echo "Installing golangci-lint ${GOLANGCILINT_VERSION}..." - curl -fsSL https://raw.githubusercontent.com/golangci/golangci-lint/main/install.sh | \ + curl -fsSL https://golangci-lint.run/install.sh | \ sh -s -- -b "${TARGET_GOPATH}/bin" "v${GOLANGCILINT_VERSION}" fi