mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-avast-retry-go: Simplify.
* gnu/packages/golang-xyz.scm (go-github-com-avast-retry-go) [arguments] <test-flags>: Utilize "-skip" option. <phases>: Remove 'disable-failing-tests. (go-github-com-avast-retry-go-v3, go-github-com-avast-retry-go-v4): Inherit arguments from go-github-com-avast-retry-go. Change-Id: I3ef54ac31060d16c66ea6294e35f5ec9698e8809
This commit is contained in:
parent
de2c6771e9
commit
ffda8ecd2d
1 changed files with 7 additions and 26 deletions
|
@ -1886,13 +1886,9 @@ stored in a Go struct.")
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/avast/retry-go"
|
#:import-path "github.com/avast/retry-go"
|
||||||
|
#:test-flags #~(list "-skip" "TestMaxDelay")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'disable-failing-tests
|
|
||||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
||||||
(with-directory-excursion (string-append "src/" import-path)
|
|
||||||
(substitute* (find-files "." "\\_test.go$")
|
|
||||||
(("TestMaxDelay") "OffTestMaxDelay")))))
|
|
||||||
(add-after 'unpack 'remove-examples
|
(add-after 'unpack 'remove-examples
|
||||||
(lambda* (#:key import-path #:allow-other-keys)
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
(delete-file-recursively
|
(delete-file-recursively
|
||||||
|
@ -1921,19 +1917,9 @@ strategies, such as fixed delay, backoff delay, and random delay.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "01mwrzjh2y3xignkivx8kaghjs3gwb3z89zqgxjfaslslazc863b"))))
|
(base32 "01mwrzjh2y3xignkivx8kaghjs3gwb3z89zqgxjfaslslazc863b"))))
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(substitute-keyword-arguments
|
||||||
#:import-path "github.com/avast/retry-go/v3"
|
(package-arguments go-github-com-avast-retry-go)
|
||||||
#:phases
|
((#:import-path _) "github.com/avast/retry-go/v3")))))
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'disable-failing-tests
|
|
||||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
|
||||||
(with-directory-excursion (string-append "src/" import-path)
|
|
||||||
(substitute* (find-files "." "\\_test.go$")
|
|
||||||
(("TestMaxDelay") "OffTestMaxDelay")))))
|
|
||||||
(add-after 'unpack 'remove-examples
|
|
||||||
(lambda* (#:key import-path #:allow-other-keys)
|
|
||||||
(delete-file-recursively
|
|
||||||
(string-append "src/" import-path "/examples")))))))))
|
|
||||||
|
|
||||||
(define-public go-github-com-avast-retry-go-v4
|
(define-public go-github-com-avast-retry-go-v4
|
||||||
(package
|
(package
|
||||||
|
@ -1950,14 +1936,9 @@ strategies, such as fixed delay, backoff delay, and random delay.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "09gs4wmkq7ragyf2xd0h6j8f9xqq66cwa95kwp5qdwz3wwv9xq1b"))))
|
(base32 "09gs4wmkq7ragyf2xd0h6j8f9xqq66cwa95kwp5qdwz3wwv9xq1b"))))
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(substitute-keyword-arguments
|
||||||
#:import-path "github.com/avast/retry-go/v4"
|
(package-arguments go-github-com-avast-retry-go)
|
||||||
#:phases
|
((#:import-path _) "github.com/avast/retry-go/v4")))))
|
||||||
#~(modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'remove-examples
|
|
||||||
(lambda* (#:key import-path #:allow-other-keys)
|
|
||||||
(delete-file-recursively
|
|
||||||
(string-append "src/" import-path "/examples")))))))))
|
|
||||||
|
|
||||||
(define-public go-github-com-axiomhq-hyperloglog
|
(define-public go-github-com-axiomhq-hyperloglog
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue