[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/22: gnu: go-github-com-syndtr-goleveldb-leveldb: Rename variable.
From: |
guix-commits |
Subject: |
12/22: gnu: go-github-com-syndtr-goleveldb-leveldb: Rename variable. |
Date: |
Sun, 7 Jul 2024 11:10:41 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit d4fdac60bf0237c3eea10c8f2bf60e85fe74217d
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Sun Jul 7 13:21:49 2024 +0100
gnu: go-github-com-syndtr-goleveldb-leveldb: Rename variable.
* gnu/packages/golang-xyz.scm (go-github-com-syndtr-goleveldb-leveldb):
Rename variable to go-github-com-syndtr-goleveldb to reflect go.mode
name.
[arguments]: <#:import-path>: Adjust it to reflect go.mode import
path. <#:phases>: Delete 'build phase; use custom 'check phase.
* gnu/packages/ipfs.scm (kubo) [inputs]: Remove
go-github-com-syndtr-goleveldb-leveldb. Add go-github-com-syndtr-goleveldb
* gnu/packages/mail.scm: Likewise.
Change-Id: I84c6a2b398adc7230494847215ccbd1cde73afc9
---
gnu/packages/golang-xyz.scm | 16 ++++++++++++----
gnu/packages/ipfs.scm | 2 +-
gnu/packages/mail.scm | 2 +-
3 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index fbe5921e25..66ec8ae39f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -4470,9 +4470,9 @@ well as a program to generate applications and command
files.")
(home-page "https://github.com/stathat/go")
(license license:expat))))
-(define-public go-github-com-syndtr-goleveldb-leveldb
+(define-public go-github-com-syndtr-goleveldb
(package
- (name "go-github-com-syndtr-goleveldb-leveldb")
+ (name "go-github-com-syndtr-goleveldb")
(version "1.0.0")
(source
(origin
@@ -4487,8 +4487,16 @@ well as a program to generate applications and command
files.")
(arguments
(list
#:go go-1.21
- #:import-path "github.com/syndtr/goleveldb/leveldb"
- #:unpack-path "github.com/syndtr/goleveldb"))
+ #:import-path "github.com/syndtr/goleveldb"
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: Replace when go-build-system supports nested path.
+ (delete 'build)
+ (replace 'check
+ (lambda* (#:key import-path tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion (string-append "src/" import-path)
+ (invoke "go" "test" "-v" "./..."))))))))
(propagated-inputs
(list go-github-com-onsi-gomega
go-github-com-onsi-ginkgo
diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index d75a99c4e1..bdfa88bd94 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -736,7 +736,7 @@ written in Go.")
go-github-com-pkg-errors
go-github-com-prometheus-client-golang
go-github-com-stretchr-testify
- go-github-com-syndtr-goleveldb-leveldb
+ go-github-com-syndtr-goleveldb
go-github-com-tidwall-sjson
go-github-com-whyrusleeping-go-sysinfo
;;go-github-com-whyrusleeping-multiaddr-filter
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 6aacdcb73c..1bf4debe68 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -5097,7 +5097,7 @@ remote SMTP server.")
go-github-com-creack-pty
go-github-com-arran4-golang-ical
go-github-com-protonmail-go-crypto
- go-github-com-syndtr-goleveldb-leveldb
+ go-github-com-syndtr-goleveldb
go-git-sr-ht-sircmpwn-getopt
go-git-sr-ht-rockorager-tcell-term
python
- 14/22: gnu: Add go-github-com-ipfs-go-ipld-cbor., (continued)
- 14/22: gnu: Add go-github-com-ipfs-go-ipld-cbor., guix-commits, 2024/07/07
- 19/22: gnu: Add go-github-com-whyrusleeping-go-keyspace., guix-commits, 2024/07/07
- 09/22: gnu: go-github-com-goccy-yaml: Rename variable., guix-commits, 2024/07/07
- 15/22: gnu: Add go-github-com-facebookgo-atomicfile., guix-commits, 2024/07/07
- 17/22: gnu: Add go-github-com-whyrusleeping-multiaddr-filter., guix-commits, 2024/07/07
- 18/22: gnu: Add go-github-com-whyrusleeping-chunker., guix-commits, 2024/07/07
- 20/22: gnu: Add go-github-com-whyrusleeping-base32., guix-commits, 2024/07/07
- 22/22: gnu: kubo: Unbundle more packaes., guix-commits, 2024/07/07
- 13/22: gnu: Add go-github-com-whyrusleeping-cbor-gen., guix-commits, 2024/07/07
- 16/22: gnu: Add go-github-com-ipfs-go-ipld-git., guix-commits, 2024/07/07
- 12/22: gnu: go-github-com-syndtr-goleveldb-leveldb: Rename variable.,
guix-commits <=
- 11/22: gnu: go-github-com-goccy-go-yaml: Enable all tests., guix-commits, 2024/07/07