From aabee4323164cfba8e6e34d8cdad83b937f58046 Mon Sep 17 00:00:00 2001 From: Patrick Norton Date: Mon, 5 Jan 2026 17:01:31 -0500 Subject: gnu: Add go-github-com-daixiang0-gci. * gnu/packages/golang-check.scm (go-github-com-daixiang0-gci, go-gci): New variables. Relates-to: https://codeberg.org/guix/guix/pulls/5417 Change-Id: I0bb9809505bff17d06f33272c41cad02fbc947db Reviewed-by: Arthur Rodrigues Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-check.scm | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index f2ac26dcf4..671c093c13 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -652,6 +652,42 @@ time functions.") strings which may be used in mock tests.") (license license:unlicense))) +(define-public go-github-com-daixiang0-gci + (package + (name "go-github-com-daixiang0-gci") + (version "0.13.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/daixiang0/gci") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vhnqisf6d706qvswccb0d7bkbl53lyi84f5sl3zyaf6yk8ml9dx")))) + (build-system go-build-system) + (arguments + (list + #:skip-build? #t + #:import-path "github.com/daixiang0/gci")) + (native-inputs + (list go-github-com-stretchr-testify + go-github-com-spf13-cobra)) + (propagated-inputs + (list go-gopkg-in-yaml-v3 + go-golang-org-x-tools + go-golang-org-x-sync + go-golang-org-x-mod + go-go-uber-org-zap + go-github-com-pmezard-go-difflib + go-github-com-hexops-gotextdiff)) + (home-page "https://github.com/daixiang0/gci") + (synopsis "Tool to make Go import order deterministic") + (description + "This package provides a tool that controls Go package import order and +makes it always deterministic.") + (license license:bsd-3))) + (define-public go-github-com-data-dog-go-sqlmock (package (name "go-github-com-data-dog-go-sqlmock") @@ -4155,6 +4191,20 @@ thoroughly " This package provides an command line interface (CLI) tool.")))) +(define-public go-gci + (package/inherit go-github-com-daixiang0-gci + (name "go-gci") + (arguments + (substitute-keyword-arguments arguments + ((#:tests? _ #t) #f) + ((#:install-source? _ #t) #f) + ((#:skip-build? _ #t) #f))) + (native-inputs + (append (package-native-inputs go-github-com-daixiang0-gci) + (package-propagated-inputs go-github-com-daixiang0-gci))) + (propagated-inputs '()) + (inputs '()))) + (define-public go-pgmockproxy (package/inherit go-github-com-jackc-pgmock (name "go-pgmockproxy") -- cgit v1.3