diff options
-rw-r--r-- | gnu/packages/databases.scm | 46 |
1 files changed, 40 insertions, 6 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index de352168e5..82e51c2c0b 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -3003,7 +3003,7 @@ one-to-one, while still providing an idiomatic interface.") (define-public go-github-com-gomodule-redigo (package (name "go-github-com-gomodule-redigo") - (version "1.8.8") + (version "1.9.2") (source (origin (method git-fetch) @@ -3012,14 +3012,48 @@ one-to-one, while still providing an idiomatic interface.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0wplaaxg7f6c6c08gdp33l48hygn8gq1rhlnjzr1c9qcggsm07k1")))) + (base32 "03z02zmkl8cj73c6xrvlpj144d9ysikc25ay64dhpbzwkn16h5yv")))) (build-system go-build-system) (arguments - '(#:unpack-path "github.com/gomodule/redigo" - #:import-path "github.com/gomodule/redigo/redis")) + (list + #: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 - (list go-github-com-stretchr-testify - redis)) + (list go-github-com-stretchr-testify)) (home-page "https://github.com/gomodule/redigo") (synopsis "Go client for Redis") (description |