From 3ee1cb2d2476e21dc4a4712267d000eb78d415c6 Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Tue, 3 Jun 2025 12:46:02 +0200 Subject: [PATCH] gopls: use buildGoLatestModule Signed-off-by: Paul Meyer --- pkgs/by-name/go/gopls/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/go/gopls/package.nix b/pkgs/by-name/go/gopls/package.nix index c0200f76c20b..70e9133beb21 100644 --- a/pkgs/by-name/go/gopls/package.nix +++ b/pkgs/by-name/go/gopls/package.nix @@ -1,12 +1,15 @@ { lib, - buildGoModule, + # gopls breaks if it is compiled with a lower version than the one it is running against. + # This will affect users especially when project they work on bump go minor version before + # the update went through nixpkgs staging. Further, gopls is a central ecosystem component. + buildGoLatestModule, fetchFromGitHub, nix-update-script, versionCheckHook, }: -buildGoModule (finalAttrs: { +buildGoLatestModule (finalAttrs: { pname = "gopls"; version = "0.18.1";