From b78c058e899721910661d073c9f640d1208dce38 Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Thu, 14 Aug 2025 15:19:18 +0100 Subject: [PATCH] golangci-lint: Build with go 1.25 Golangci-lint should always be built with latest available version of Go that golangci-lint is compatible with. golangci-lint v2.4.0 introduced go 1.25 support so this is now safe to upgrade here. --- pkgs/by-name/go/golangci-lint/package.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/go/golangci-lint/package.nix b/pkgs/by-name/go/golangci-lint/package.nix index a877697568fb..36e1f957f31b 100644 --- a/pkgs/by-name/go/golangci-lint/package.nix +++ b/pkgs/by-name/go/golangci-lint/package.nix @@ -1,5 +1,10 @@ { - buildGoModule, + # golangci-lint has historically required code changes to support new versions of + # go so always use the latest specific go version that golangci-lint supports + # rather than buildGoLatestModule. + # This can be bumped when the release notes of golangci-lint detail support for + # new version of go. + buildGo125Module, buildPackages, fetchFromGitHub, installShellFiles, @@ -7,7 +12,7 @@ stdenv, }: -buildGoModule (finalAttrs: { +buildGo125Module (finalAttrs: { pname = "golangci-lint"; version = "2.4.0";