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";