aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/golang-crypto.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-07-27 22:44:38 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-07-28 21:48:28 +0100
commitf400b64826caf6f5454cbcb1c7e891c870afb02f (patch)
tree0ef0a3321c7fd432974d655d6b4d15051869909c /gnu/packages/golang-crypto.scm
parentf7f125ba5fbed09289b6b98673b709664d2a01ea (diff)
downloadguix-f400b64826caf6f5454cbcb1c7e891c870afb02f.tar
guix-f400b64826caf6f5454cbcb1c7e891c870afb02f.tar.gz
gnu: go-github-com-protonmail-go-crypto: Enable tests.
* gnu/packages/golang-crypto.scm (go-github-com-protonmail-go-crypto): Enable tests. [arguments]: <#:phases>: Add custom 'check phase. Change-Id: I93f022ddc0f1145e136a13ba3e8e5a8cb86538c3
Diffstat (limited to 'gnu/packages/golang-crypto.scm')
-rw-r--r--gnu/packages/golang-crypto.scm11
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 10259d7929..5bd593e801 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -1216,11 +1216,16 @@ algorithm.")
(arguments
(list
#:import-path "github.com/ProtonMail/go-crypto"
- #:tests? #f ; Source-only package.
#: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-github-com-cloudflare-circl
go-golang-org-x-crypto))