1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-16 12:00:35 +02: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:
Sharlatan Hellseher 2024-12-16 11:06:56 +00:00
parent 3405000aa4
commit b3d1311064
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -951,6 +951,19 @@ Gomega matcher library.")
go-golang-org-x-sys
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
(package
(name "go-github-com-onsi-gomega")
@ -967,10 +980,15 @@ Gomega matcher library.")
(build-system go-build-system)
(arguments
(list
;; Unless we disable the tests, we have a circular dependency on
;; ginkgo/v2.
#:tests? #f
#:import-path "github.com/onsi/gomega"))
#:import-path "github.com/onsi/gomega"
#:phases
#~(modify-phases %standard-phases
(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
(list go-github-com-golang-protobuf
go-golang-org-x-net