gnu: gopls: Update to 0.19.1.

* gnu/packages/golang-apps.scm (gopls): Update to 0.19.1.
[arguments]: Use go-1.24.
<#:phases>: Add 'set-env.
[native-inputs]: Add go-github-com-fatih-gomodifytags.

Change-Id: I5d3b371f3eadf0e6f28d3def228849e46772b7fb
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Tomas Volf 2025-07-13 00:47:32 +02:00 committed by Sharlatan Hellseher
parent 3fea0faff6
commit 6cf00e6cde
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2025 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2025 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2025 Tomas Volf <~@wolfsden.cz>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -124,7 +125,7 @@ import of a 3rd party package at runtime).")
(name "gopls") (name "gopls")
;; XXX: Starting from 0.14.0 gppls needs golang.org/x/telemetry, which ;; XXX: Starting from 0.14.0 gppls needs golang.org/x/telemetry, which
;; needs to be discussed if it may be included in Guix. ;; needs to be discussed if it may be included in Guix.
(version "0.18.1") (version "0.19.1")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -133,11 +134,11 @@ import of a 3rd party package at runtime).")
(commit (go-version->git-ref version #:subdir "gopls")))) (commit (go-version->git-ref version #:subdir "gopls"))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0s396bjwac1acrlpbp7k7xfyhmkykyxc08w6hirbdhlq8vg923p7")))) (base32 "1dihdw4nzp21hlbwxf6qyhyfgavi1a55lmlyk36czd85v0jcp6a0"))))
(build-system go-build-system) (build-system go-build-system)
(arguments (arguments
(list (list
#:go go-1.23 #:go go-1.24
#:install-source? #f #:install-source? #f
#:import-path "golang.org/x/tools/gopls" #:import-path "golang.org/x/tools/gopls"
#:unpack-path "golang.org/x/tools" #:unpack-path "golang.org/x/tools"
@ -153,9 +154,14 @@ import of a 3rd party package at runtime).")
(lambda _ (lambda _
;; XXX: Write a procedure deleting all but current module source ;; XXX: Write a procedure deleting all but current module source
;; to cover case with monorepo. ;; to cover case with monorepo.
(delete-file-recursively "src/golang.org/x/tools")))))) (delete-file-recursively "src/golang.org/x/tools")))
(add-before 'check 'set-env
(lambda _
;; Required for fingerprint_test.TestMatches.
(setenv "GODEBUG" "gotypesalias=1"))))))
(native-inputs (native-inputs
(list go-github-com-google-go-cmp (list go-github-com-fatih-gomodifytags
go-github-com-google-go-cmp
go-github-com-jba-templatecheck go-github-com-jba-templatecheck
go-golang-org-x-mod go-golang-org-x-mod
go-golang-org-x-sync go-golang-org-x-sync