aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/golang-build.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-07-12 13:44:06 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-07-15 12:17:49 +0100
commit6be3cbad1351ff9d3ecd56e7f2372e9c54d4af7c (patch)
tree02322540add0a8b6e41bb5e4a88b12af100435eb /gnu/packages/golang-build.scm
parent8aa11899bdb2e09191623c961ac65891935e3598 (diff)
downloadguix-6be3cbad1351ff9d3ecd56e7f2372e9c54d4af7c.tar
guix-6be3cbad1351ff9d3ecd56e7f2372e9c54d4af7c.tar.gz
gnu: go-golang-org-x-net: Enable tests.
* gnu/packages/golang-build.scm (go-golang-org-x-net): Enable tests. [arguments]: <#:phases>: Use custom 'check phase. [propagated-inputs]: Add go-golang-org-x-crypto. Change-Id: I632cdc7541bde898214aa006434fa96a5050fa62
Diffstat (limited to 'gnu/packages/golang-build.scm')
-rw-r--r--gnu/packages/golang-build.scm17
1 files changed, 12 insertions, 5 deletions
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index df5fa638d3..200170d9c4 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -307,14 +307,21 @@ loading algorithms.")
(arguments
(list
#:import-path "golang.org/x/net"
- ;; Source-only package
- #:tests? #f
#:phases
#~(modify-phases %standard-phases
- ;; Source-only package
- (delete 'build))))
+ ;; XXX: Workaround for go-build-system's lack of Go modules
+ ;; support.
+ (delete 'build)
+ (replace 'check
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
- (list go-golang-org-x-sys go-golang-org-x-term go-golang-org-x-text))
+ (list go-golang-org-x-crypto
+ go-golang-org-x-sys
+ go-golang-org-x-term
+ go-golang-org-x-text))
(home-page "https://go.googlesource.com/net")
(synopsis "Go supplemental networking libraries")
(description