[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
158/401: gnu: go-github-com-ipfs-go-datastore: Fix build.
From: |
guix-commits |
Subject: |
158/401: gnu: go-github-com-ipfs-go-datastore: Fix build. |
Date: |
Thu, 26 Dec 2024 19:30:49 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 5bb0570b46eff313400c995d51e6dbfb3ae98ced
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Dec 15 12:58:05 2024 +0000
gnu: go-github-com-ipfs-go-datastore: Fix build.
* gnu/packages/ipfs.scm (go-github-com-ipfs-go-datastore)
[argumetns]<test-subdirs>: Exclude "fuzz" from scope which introduces
cyle. It provides a CLI command.
<phases>: Add 'remove-examples.
Change-Id: I0ee83bd5a386afe703d81d999c7650f7f9c42bf9
---
gnu/packages/ipfs.scm | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index e47221b40a..c703e63e90 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -365,7 +365,30 @@ keys used by @code{go-ipfs} (Kubo).")
(build-system go-build-system)
(arguments
(list
- #:import-path "github.com/ipfs/go-datastore"))
+ #:import-path "github.com/ipfs/go-datastore"
+ #:test-subdirs
+ #~(list "autobatch/..."
+ "delayed/..."
+ "examples/..."
+ "failstore/..."
+ ;; "fuzz/..." ; introduces cycle, for CLI
+ "keytransform/..."
+ "mount/..."
+ "namespace/..."
+ "query/..."
+ "retrystore/..."
+ "scoped/..."
+ "sync/..."
+ "test/..."
+ "trace/..."
+ ".")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-examples
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (for-each delete-file-recursively
+ (list "examples"))))))))
(native-inputs
(list go-gopkg-in-check-v1))
(propagated-inputs
- 362/401: gnu: go-github-com-oklog-ulid: Fix bulid., (continued)
- 362/401: gnu: go-github-com-oklog-ulid: Fix bulid., guix-commits, 2024/12/26
- 382/401: gnu: Add go-github-com-gin-gonic-gin., guix-commits, 2024/12/26
- 368/401: gnu: Add go-github-com-keybase-dbus., guix-commits, 2024/12/26
- 379/401: gnu: go-github-com-burntsushi-toml: Simplify., guix-commits, 2024/12/26
- 390/401: gnu: go-go-uber-org-multierr: Update to 1.11.0., guix-commits, 2024/12/26
- 396/401: gnu: go-github-com-willscott-goturn: Update to 0.0.0-20170802220503-19f41278d0c9., guix-commits, 2024/12/26
- 399/401: gnu: go-github-com-polydawn-refmt: Update to 0.89.0., guix-commits, 2024/12/26
- 128/401: gnu: Add go-github-com-containerd-log., guix-commits, 2024/12/26
- 164/401: gnu: go-github-com-google-gofuzz: Update to 1.2.0., guix-commits, 2024/12/26
- 168/401: gnu: go-github-com-kr-fs: Move to golang-xyz., guix-commits, 2024/12/26
- 158/401: gnu: go-github-com-ipfs-go-datastore: Fix build.,
guix-commits <=
- 176/401: gnu: go-github-com-youmark-pkcs8: Update to 1.3., guix-commits, 2024/12/26
- 169/401: gnu: go-github-com-pkg-sftp: Update to 1.13.7., guix-commits, 2024/12/26
- 192/401: gnu: go-sigs-k8s-io-yaml: Update to 1.4.0., guix-commits, 2024/12/26
- 183/401: gnu: go-github-com-dgraph-io-badger: Simplify package., guix-commits, 2024/12/26
- 208/401: gnu: go-github-com-onsi-ginkgo: Fix build., guix-commits, 2024/12/26
- 215/401: gnu: Add go-modernc-org-mathutil., guix-commits, 2024/12/26
- 218/401: gnu: runitor: Update to 1.3.0-build.4., guix-commits, 2024/12/26
- 219/401: gnu: Add go-modernc-org-fileutil., guix-commits, 2024/12/26
- 220/401: gnu: Add go-modernc-org-sortutil., guix-commits, 2024/12/26
- 228/401: gnu: Add go-github-com-moby-sys-mountinfo., guix-commits, 2024/12/26