mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-onsi-gomega: Enable tests.
* gnu/packages/golang-check.scm (go-github-com-onsi-gomega) [arguments]<tests?>: Enable them. <phases>: Add 'remove-failing-test-files. [native-inputs]: Add go-github-com-onsi-ginkgo-v2-bootstrap. (go-github-com-onsi-ginkgo-v2-bootstrap): New variable. Change-Id: I631cf5e1ed46822a0585387f20169084578d19f4
This commit is contained in:
parent
3405000aa4
commit
b3d1311064
1 changed files with 22 additions and 4 deletions
|
@ -951,6 +951,19 @@ Gomega matcher library.")
|
||||||
go-golang-org-x-sys
|
go-golang-org-x-sys
|
||||||
go-golang-org-x-tools))))
|
go-golang-org-x-tools))))
|
||||||
|
|
||||||
|
(define-public go-github-com-onsi-ginkgo-v2-bootstrap
|
||||||
|
(hidden-package (package (inherit go-github-com-onsi-ginkgo-v2)
|
||||||
|
(name "go-github-com-onsi-ginkgo-v2")
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:tests? #f
|
||||||
|
#:import-path "github.com/onsi/ginkgo/v2"
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases (delete 'build))))
|
||||||
|
(native-inputs '())
|
||||||
|
(propagated-inputs
|
||||||
|
(list go-github-com-go-logr-logr)))))
|
||||||
|
|
||||||
(define-public go-github-com-onsi-gomega
|
(define-public go-github-com-onsi-gomega
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-onsi-gomega")
|
(name "go-github-com-onsi-gomega")
|
||||||
|
@ -967,10 +980,15 @@ Gomega matcher library.")
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
;; Unless we disable the tests, we have a circular dependency on
|
#:import-path "github.com/onsi/gomega"
|
||||||
;; ginkgo/v2.
|
#:phases
|
||||||
#:tests? #f
|
#~(modify-phases %standard-phases
|
||||||
#:import-path "github.com/onsi/gomega"))
|
(add-after 'unpack 'remove-failing-test-files
|
||||||
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(delete-file "gexec/build_test.go")))))))
|
||||||
|
(native-inputs
|
||||||
|
(list go-github-com-onsi-ginkgo-v2-bootstrap))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-golang-protobuf
|
(list go-github-com-golang-protobuf
|
||||||
go-golang-org-x-net
|
go-golang-org-x-net
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue