gnu: Add go-fxlint.

* gnu/packages/golang-xyz.scm (go-go-uber-org-fx-tools, go-fxlint): New
variables.

Change-Id: I9fcccc99393a990967188a7977c28b5e00a4cee9
This commit is contained in:
Sharlatan Hellseher 2024-12-26 22:28:34 +00:00
parent b1bda73e1f
commit 4e0a12a3c1
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -11523,6 +11523,36 @@ (define-public go-go-uber-org-fx
applications out of reusable, composable modules.")
(license license:expat)))
(define-public go-go-uber-org-fx-tools
(package
(name "go-go-uber-org-fx-tools")
(version "0.0.0-20241011173146-861011200d8a")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/uber-go/fx")
(commit (go-version->git-ref version
#:subdir "tools"))))
(file-name (git-file-name name version))
(sha256
(base32 "1y9zavn5dmb5v2g2krc1apznp1fwc2zb70hlgxw4xcz2ifdwx7wz"))))
(build-system go-build-system)
(arguments
(list
#:skip-build? #t
#:import-path "go.uber.org/fx/tools"
#:unpack-path "go.uber.org/fx"))
(propagated-inputs (list go-golang-org-x-tools))
(home-page "https://go.uber.org/fx")
(synopsis "Verify FX events")
(description
"This Package implements a Go analysis pass that verifies that an
@code{fxevent.Logger} implementation handles all known fxevent types. As a
special case for no-op or fake fxevent.Loggers, it ignores implementations
that handle none of the event types.")
(license license:expat)))
(define-public go-go-uber-org-multierr
(package
(name "go-go-uber-org-multierr")
@ -12507,6 +12537,21 @@ (define-public go-csv2table
(string-append (package-description go-github-com-olekukonko-tablewriter)
"\nThis package provides a command line interface (CLI) tool."))))
(define-public go-fxlint
(package
(inherit go-go-uber-org-fx-tools)
(name "go-fxlint")
(arguments
(list
#:tests? #f
#:install-source? #f
#:import-path "go.uber.org/fx/tools/cmd/fxlint"
#:unpack-path "go.uber.org/fx"))
(description
(string-append (package-description go-go-uber-org-fx-tools)
" This package provides a command line interface (CLI)
linter that verifies correct usage of Fx."))))
(define-public go-hclogvet
(package
(inherit go-github-com-hashicorp-go-hclog)