[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
33/172: gnu: go-github-com-golang-protobuf: Update to 1.5.4.
From: |
guix-commits |
Subject: |
33/172: gnu: go-github-com-golang-protobuf: Update to 1.5.4. |
Date: |
Tue, 5 Nov 2024 16:04:50 -0500 (EST) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit d0f34598fced8b72f0a60aa8babf54d270b903e7
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Sep 12 22:45:08 2024 +0100
gnu: go-github-com-golang-protobuf: Update to 1.5.4.
* gnu/packages/golang-build.scm (go-github-com-golang-protobuf): Update to
1.5.4.
[arguments]: <#:phases>: Add 'fix-embed-files.
[native-inputs]: Add go-github-com-google-go-cmp.
Change-Id: I9ee7bb07cd9718345bace243ca2bf0afa99ef411
---
gnu/packages/golang-build.scm | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/golang-build.scm b/gnu/packages/golang-build.scm
index 04c75e7c66..75eaf61b9d 100644
--- a/gnu/packages/golang-build.scm
+++ b/gnu/packages/golang-build.scm
@@ -87,7 +87,7 @@ functions that have a name matched by regex:.")
(define-public go-github-com-golang-protobuf
(package
(name "go-github-com-golang-protobuf")
- (version "1.5.3")
+ (version "1.5.4")
(source
(origin
(method git-fetch)
@@ -96,13 +96,31 @@ functions that have a name matched by regex:.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "03f1w2cd4s8a3xhl61x7yjx81kbzlrjpvnnwmbhqnz814yi7h43i"))))
+ (base32 "1bk7sa9ymi87hd2fv9jamxnxb3qjriamf2nsm8avp6ka37mrkz01"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/golang/protobuf"
#:phases
#~(modify-phases %standard-phases
+ ;; TODO: Implement it in go-build-system.
+ ;;
+ ;; This happens due to Golang can't determine the valid directory of
+ ;; the module of embed file which is symlinked during setup
+ ;; environment phase, but easy resolved after coping file from the
+ ;; store to the build directory of the current package, see details
+ ;; in Golang source:
+ ;;
+ ;; - URL: <https://github.com/golang/go/blob/>
+ ;; - commit: 82c14346d89ec0eeca114f9ca0e88516b2cda454
+ ;; - file: src/cmd/go/internal/load/pkg.go#L2059
+ (add-after 'unpack 'fix-embed-files
+ (lambda _
+ (for-each (lambda (file)
+ (let ((file-store-path (readlink file)))
+ (delete-file file)
+ (copy-recursively file-store-path file)))
+ (find-files "src" ".*(editions_defaults.binpb)$"))))
;; XXX: Workaround for go-build-system's lack of Go modules
;; support.
(delete 'build)
@@ -111,6 +129,8 @@ functions that have a name matched by regex:.")
(when tests?
(with-directory-excursion (string-append "src/" import-path)
(invoke "go" "test" "-v" "./..."))))))))
+ (native-inputs
+ (list go-github-com-google-go-cmp))
(propagated-inputs
(list go-google-golang-org-protobuf))
(home-page "https://github.com/golang/protobuf")
- 20/172: build-system/go: Add subdir parameter to go-version->git-ref., (continued)
- 20/172: build-system/go: Add subdir parameter to go-version->git-ref., guix-commits, 2024/11/05
- 21/172: import/go: Account for monorepo modules in the Go importer., guix-commits, 2024/11/05
- 17/172: build-system/go: Allow providing additional test flags., guix-commits, 2024/11/05
- 26/172: gnu: go-golang-org-x-net: Update to 0.29.0., guix-commits, 2024/11/05
- 15/172: gnu: go-github-com-aws-aws-sdk-go-v2: Update to 1.30.5., guix-commits, 2024/11/05
- 23/172: gnu: packages/golang-crypto: Apply #:subdir parameter., guix-commits, 2024/11/05
- 16/172: import/go: Add comment about monorepo., guix-commits, 2024/11/05
- 29/172: gnu: go-golang-org-x-text: Update to 0.18.0., guix-commits, 2024/11/05
- 43/172: gnu: go-github-com-prometheus-statsd-exporter: Fix build., guix-commits, 2024/11/05
- 32/172: gnu: go-google-golang-org-protobuf: Update to 1.34.2., guix-commits, 2024/11/05
- 33/172: gnu: go-github-com-golang-protobuf: Update to 1.5.4.,
guix-commits <=
- 47/172: gnu: go-golang-org-x-tools: Update to 0.25.0., guix-commits, 2024/11/05
- 39/172: gnu: go-github-com-dgraph-io-badger: Fix build., guix-commits, 2024/11/05
- 53/172: gnu: go-github-com-google-renameio: Move to golang-build., guix-commits, 2024/11/05
- 48/172: gnu: Add go-golang-org-x-telemetry., guix-commits, 2024/11/05
- 61/172: gnu: go-golang-org-x-crypto: Update to 0.27.0., guix-commits, 2024/11/05
- 64/172: gnu: go-github-com-google-go-querystring: Move to golang-web., guix-commits, 2024/11/05
- 70/172: gnu: go-github-com-jonboulle-clockwork: Fix indentation., guix-commits, 2024/11/05
- 66/172: gnu: go-github-com-google-goterm: Fix indentation., guix-commits, 2024/11/05
- 73/172: gnu: go-github-com-google-btree: Update to 1.1.3., guix-commits, 2024/11/05
- 72/172: gnu: go-github-com-google-uuid: Move to golang-build., guix-commits, 2024/11/05