mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-gomodule-redigo: Update to 1.9.2.
* gnu/packages/databases.scm (go-github-com-gomodule-redigo): Update to 1.9.2. [arguments] <skip-build?>: No go files in project's root. <import-path>: Set to project's root. <unpack-path>: Remove as redundant. <test-flags>: Skip all tests requiring redis CLI and running redis service. <phases>: Add 'remove-examples. [native-inputs]: Remove redis. Change-Id: Ia87d118ddebc712d7c91d83c3bb707271c86ec16
This commit is contained in:
parent
ca5c09e7f2
commit
d4ba1e30e2
1 changed files with 40 additions and 6 deletions
|
@ -3003,7 +3003,7 @@ one-to-one, while still providing an idiomatic interface.")
|
||||||
(define-public go-github-com-gomodule-redigo
|
(define-public go-github-com-gomodule-redigo
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-gomodule-redigo")
|
(name "go-github-com-gomodule-redigo")
|
||||||
(version "1.8.8")
|
(version "1.9.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -3012,14 +3012,48 @@ one-to-one, while still providing an idiomatic interface.")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0wplaaxg7f6c6c08gdp33l48hygn8gq1rhlnjzr1c9qcggsm07k1"))))
|
(base32 "03z02zmkl8cj73c6xrvlpj144d9ysikc25ay64dhpbzwkn16h5yv"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:unpack-path "github.com/gomodule/redigo"
|
(list
|
||||||
#:import-path "github.com/gomodule/redigo/redis"))
|
#:skip-build? #t
|
||||||
|
#:import-path "github.com/gomodule/redigo"
|
||||||
|
#:test-flags
|
||||||
|
#~(list "-skip"
|
||||||
|
(string-join
|
||||||
|
;; Run just unit tests which do not require Redis reducing
|
||||||
|
;; closure size.
|
||||||
|
(list "TestDoCommands"
|
||||||
|
"TestPipelineCommands"
|
||||||
|
"TestBlankCommand"
|
||||||
|
"TestRecvBeforeSend"
|
||||||
|
"TestError"
|
||||||
|
"TestDialContext_CanceledContext"
|
||||||
|
"TestDialClientName"
|
||||||
|
"TestExecError"
|
||||||
|
"Test.*Pool.*"
|
||||||
|
"TestPushed"
|
||||||
|
"TestPubSubReceiveContext"
|
||||||
|
"TestSlowLog"
|
||||||
|
"TestLatency"
|
||||||
|
"TestLatencyHistories"
|
||||||
|
"TestScript"
|
||||||
|
"Example.*"
|
||||||
|
"TestConnMux"
|
||||||
|
"TestConnMuxClose")
|
||||||
|
"|"))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'remove-examples
|
||||||
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(for-each delete-file
|
||||||
|
(list "redis/zpop_example_test.go"
|
||||||
|
"redis/scan_test.go"
|
||||||
|
"redis/pubsub_example_test.go"
|
||||||
|
"redis/reply_test.go"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list go-github-com-stretchr-testify
|
(list go-github-com-stretchr-testify))
|
||||||
redis))
|
|
||||||
(home-page "https://github.com/gomodule/redigo")
|
(home-page "https://github.com/gomodule/redigo")
|
||||||
(synopsis "Go client for Redis")
|
(synopsis "Go client for Redis")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue