summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-07-02 16:05:36 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-07-02 16:20:12 +0100
commitb5ccecb2fc32f5249b464f93d5f71b6724e9a0b7 (patch)
tree57ff6a8143aa31e59da0412238c4692b74bd8ca1
parent4562c8f51b8c025976ad7f5de91a0c0300374775 (diff)
gnu: Add revive.
* gnu/packages/golang-check.scm (go-github-com-mgechev-revive, revive): New variables. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/golang-check.scm75
1 files changed, 75 insertions, 0 deletions
diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index 62ce8de0d43..51e4b43a0e7 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -2814,6 +2814,66 @@ collaborators.")
2814and summarizing @code{go test} output.") 2814and summarizing @code{go test} output.")
2815 (license license:expat))) 2815 (license license:expat)))
2816 2816
2817(define-public go-github-com-mgechev-revive
2818 (package
2819 (name "go-github-com-mgechev-revive")
2820 (properties
2821 '((release-commit . "815ffde4de8dcb31a2de91efd6c6795d75e24380")
2822 (release-date . "2026-03-06T09:57:31.000Z")
2823 (builder . "Guix")))
2824 (version "1.15.0")
2825 (source
2826 (origin
2827 (method git-fetch)
2828 (uri (git-reference
2829 (url "https://github.com/mgechev/revive")
2830 (commit (string-append "v" version))))
2831 (file-name (git-file-name name version))
2832 (sha256
2833 (base32 "0zirws8wfnswzxqhpv6vjf5sc7i5yssf2zzypvhrsmk4lfn4bhyz"))
2834 (modules '((guix build utils)))
2835 (snippet
2836 #~(begin
2837 ;; Submodules with their own go.mod files and packaged separately:
2838 (delete-file-recursively "tools")))))
2839 (build-system go-build-system)
2840 (arguments
2841 (list
2842 #:skip-build? #t
2843 #:import-path "github.com/mgechev/revive"
2844 #:build-flags
2845 #~(let ((base "github.com/mgechev/revive/"))
2846 (list (format #f "-ldflags=-X ~s -X ~s -X ~s -X ~s"
2847 (string-append base "cli.version="
2848 "v" #$version)
2849 (string-append base "cli.date="
2850 #$(assoc-ref properties 'release-date))
2851 (string-append base "cli.commit="
2852 (string-take
2853 #$(assoc-ref properties 'release-commit) 7))
2854 (string-append base "cli.builtBy="
2855 #$(assoc-ref properties 'builder)))))
2856 #:test-flags
2857 #~(list "-skip" "TestGetDevelopmentVersion|TestAll/unexported_return.go")))
2858 (native-inputs
2859 (list go-github-com-fatih-color
2860 go-github-com-fatih-structtag
2861 go-github-com-hashicorp-go-version
2862 go-github-com-mgechev-dots
2863 go-github-com-spf13-afero))
2864 (propagated-inputs
2865 (list go-codeberg-org-chavacava-garif
2866 go-github-com-burntsushi-toml
2867 go-golang-org-x-mod
2868 go-golang-org-x-sync
2869 go-golang-org-x-tools))
2870 (home-page "https://revive.run/")
2871 (synopsis "Drop-in replacement for @code{golint}")
2872 (description
2873 "This package provides a drop-in replacement of @command{golint} -
2874@command{revive} a lint framework custom rules.")
2875 (license license:expat)))
2876
2817(define-public go-github-com-mndrix-tap-go 2877(define-public go-github-com-mndrix-tap-go
2818 (package 2878 (package
2819 (name "go-github-com-mndrix-tap-go") 2879 (name "go-github-com-mndrix-tap-go")
@@ -5529,6 +5589,21 @@ tool."))))
5529 (propagated-inputs '()) 5589 (propagated-inputs '())
5530 (inputs '()))) 5590 (inputs '())))
5531 5591
5592(define-public revive
5593 (package/inherit go-github-com-mgechev-revive
5594 (name "revive")
5595 (arguments
5596 (substitute-keyword-arguments arguments
5597 ((#:tests? _ #f) #f)
5598 ((#:skip-build? _ #t) #f)
5599 ((#:install-source? _ #t) #f)))
5600 (native-inputs
5601 (append
5602 (package-native-inputs go-github-com-mgechev-revive)
5603 (package-propagated-inputs go-github-com-mgechev-revive)))
5604 (inputs '())
5605 (propagated-inputs '())))
5606
5532(define-public unparam 5607(define-public unparam
5533 (package 5608 (package
5534 (inherit go-mvdan-cc-unparam) 5609 (inherit go-mvdan-cc-unparam)