mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-14 19:10:49 +02:00
gnu: gopls: Move to golang-xyz.
* gnu/packages/golang.scm (gopls): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. Change-Id: Ic1d121f112848f63786a6fa93498ba9ccc937354
This commit is contained in:
parent
fc831d6bec
commit
2a6587cf5f
2 changed files with 55 additions and 55 deletions
|
@ -16986,6 +16986,61 @@ tool."))))
|
||||||
(propagated-inputs '())
|
(propagated-inputs '())
|
||||||
(inputs '())))
|
(inputs '())))
|
||||||
|
|
||||||
|
(define-public gopls
|
||||||
|
(package
|
||||||
|
(name "gopls")
|
||||||
|
;; XXX: Starting from 0.14.0 gppls needs golang.org/x/telemetry, which
|
||||||
|
;; needs to be discussed if it may be included in Guix.
|
||||||
|
(version "0.17.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://go.googlesource.com/tools")
|
||||||
|
(commit (go-version->git-ref version #:subdir "gopls"))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "1qksn79nc94fig5bia0l8h7fzm1zbn9rvya25hwf0f18v8a0id9l"))))
|
||||||
|
(build-system go-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:go go-1.23
|
||||||
|
#:install-source? #f
|
||||||
|
#:import-path "golang.org/x/tools/gopls"
|
||||||
|
#:unpack-path "golang.org/x/tools"
|
||||||
|
;; XXX: No tests in project's root, limit to some of subdris, try to
|
||||||
|
;; enable more.
|
||||||
|
#:test-subdirs
|
||||||
|
#~(list "internal/protocol/..."
|
||||||
|
"internal/util/..."
|
||||||
|
"internal/vulncheck/...")
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-before 'unpack 'override-tools
|
||||||
|
(lambda _
|
||||||
|
;; XXX: Write a procedure deleting all but current module source
|
||||||
|
;; to cover case with monorepo.
|
||||||
|
(delete-file-recursively "src/golang.org/x/tools"))))))
|
||||||
|
(native-inputs
|
||||||
|
(list go-github-com-google-go-cmp
|
||||||
|
go-github-com-jba-templatecheck
|
||||||
|
go-golang-org-x-mod
|
||||||
|
go-golang-org-x-sync
|
||||||
|
go-golang-org-x-telemetry
|
||||||
|
go-golang-org-x-text
|
||||||
|
go-golang-org-x-vuln
|
||||||
|
go-gopkg-in-yaml-v3
|
||||||
|
go-honnef-co-go-tools
|
||||||
|
go-mvdan-cc-gofumpt
|
||||||
|
go-mvdan-cc-xurls-v2))
|
||||||
|
(home-page "https://golang.org/x/tools/gopls")
|
||||||
|
(synopsis "Official language server for the Go language")
|
||||||
|
(description
|
||||||
|
"Pronounced ``Go please'', this is the official Go language server
|
||||||
|
developed by the Go team. It provides IDE features to any LSP-compatible
|
||||||
|
editor.")
|
||||||
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public misspell
|
(define-public misspell
|
||||||
(package
|
(package
|
||||||
(inherit go-github-com-client9-misspell)
|
(inherit go-github-com-client9-misspell)
|
||||||
|
|
|
@ -1901,61 +1901,6 @@ termination.")
|
||||||
"t.Fatalf(`Killf(\"BO%%s")))))))
|
"t.Fatalf(`Killf(\"BO%%s")))))))
|
||||||
(home-page "https://gopkg.in/tomb.v1")))
|
(home-page "https://gopkg.in/tomb.v1")))
|
||||||
|
|
||||||
(define-public gopls
|
|
||||||
(package
|
|
||||||
(name "gopls")
|
|
||||||
;; XXX: Starting from 0.14.0 gppls needs golang.org/x/telemetry, which
|
|
||||||
;; needs to be discussed if it may be included in Guix.
|
|
||||||
(version "0.17.1")
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method git-fetch)
|
|
||||||
(uri (git-reference
|
|
||||||
(url "https://go.googlesource.com/tools")
|
|
||||||
(commit (go-version->git-ref version #:subdir "gopls"))))
|
|
||||||
(file-name (git-file-name name version))
|
|
||||||
(sha256
|
|
||||||
(base32 "1qksn79nc94fig5bia0l8h7fzm1zbn9rvya25hwf0f18v8a0id9l"))))
|
|
||||||
(build-system go-build-system)
|
|
||||||
(arguments
|
|
||||||
(list
|
|
||||||
#:go go-1.23
|
|
||||||
#:install-source? #f
|
|
||||||
#:import-path "golang.org/x/tools/gopls"
|
|
||||||
#:unpack-path "golang.org/x/tools"
|
|
||||||
;; XXX: No tests in project's root, limit to some of subdris, try to
|
|
||||||
;; enable more.
|
|
||||||
#:test-subdirs
|
|
||||||
#~(list "internal/protocol/..."
|
|
||||||
"internal/util/..."
|
|
||||||
"internal/vulncheck/...")
|
|
||||||
#:phases
|
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(add-before 'unpack 'override-tools
|
|
||||||
(lambda _
|
|
||||||
;; XXX: Write a procedure deleting all but current module source
|
|
||||||
;; to cover case with monorepo.
|
|
||||||
(delete-file-recursively "src/golang.org/x/tools"))))))
|
|
||||||
(native-inputs
|
|
||||||
(list go-github-com-google-go-cmp
|
|
||||||
go-github-com-jba-templatecheck
|
|
||||||
go-golang-org-x-mod
|
|
||||||
go-golang-org-x-sync
|
|
||||||
go-golang-org-x-telemetry
|
|
||||||
go-golang-org-x-text
|
|
||||||
go-golang-org-x-vuln
|
|
||||||
go-gopkg-in-yaml-v3
|
|
||||||
go-honnef-co-go-tools
|
|
||||||
go-mvdan-cc-gofumpt
|
|
||||||
go-mvdan-cc-xurls-v2))
|
|
||||||
(home-page "https://golang.org/x/tools/gopls")
|
|
||||||
(synopsis "Official language server for the Go language")
|
|
||||||
(description
|
|
||||||
"Pronounced ``Go please'', this is the official Go language server
|
|
||||||
developed by the Go team. It provides IDE features to any LSP-compatible
|
|
||||||
editor.")
|
|
||||||
(license license:bsd-3)))
|
|
||||||
|
|
||||||
(define-public go-github-com-google-cadvisor
|
(define-public go-github-com-google-cadvisor
|
||||||
(let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd")
|
(let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd")
|
||||||
(revision "0"))
|
(revision "0"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue