me
/
guix
Archived
1
0
Fork 0

gnu: go-gotest-tools-internal-source: Skip tests with gccgo.

* gnu/packages/golang.scm (go-gotest-tools-internal-source)[arguments]:
When building with gccgo skip the test suite.

Change-Id: Ibe3569d9449321dd13ac7691273644d83f8fb38b
master
Efraim Flashner 2023-11-29 22:02:21 +02:00
parent 7696c8819f
commit bdbb9dc27a
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 11 additions and 0 deletions

View File

@ -8568,6 +8568,17 @@ with gotest-tools.")))
(define-public go-gotest-tools-internal-source
(package (inherit (go-gotest-tools-package "internal/source"))
(arguments
(substitute-keyword-arguments
(package-arguments (go-gotest-tools-package "internal/source"))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(replace 'check
(lambda* (#:key inputs #:allow-other-keys #:rest args)
(unless
;; failed to parse source file: : open : no such file or directory
(false-if-exception (search-input-file inputs "/bin/gccgo"))
(apply (assoc-ref %standard-phases 'check) args))))))))
(native-inputs
(list go-github-com-pkg-errors go-github-com-google-go-cmp-cmp))
(synopsis "Source code AST formatters for gotest-tools")