[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
37/169: gnu: go-github-com-golang-groupcache: Fix build.
From: |
guix-commits |
Subject: |
37/169: gnu: go-github-com-golang-groupcache: Fix build. |
Date: |
Thu, 26 Sep 2024 06:42:43 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 824daaad1e829225c7eec4cfe0805edd17a63405
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Sep 13 14:00:33 2024 +0100
gnu: go-github-com-golang-groupcache: Fix build.
* gnu/packages/golang-web.scm (go-github-com-golang-groupcache): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.
Change-Id: I69f1df0a64176d3a0483ebf38840302d7e5a5d18
---
gnu/packages/golang-web.scm | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 0f194b7046..57c5430d57 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -1916,7 +1916,28 @@ from CloudFlare's github.com/cloudflare/cfssl/revoke.")
(base32 "07amgr8ji4mnq91qbsw2jlcmw6hqiwdf4kzfdrj8c4b05w4knszc"))))
(build-system go-build-system)
(arguments
- (list #:import-path "github.com/golang/groupcache"))
+ (list
+ #:import-path "github.com/golang/groupcache"
+ #: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)$")))))))
(propagated-inputs
(list go-github-com-golang-protobuf))
(home-page "https://github.com/golang/groupcache")
- 08/169: gnu: go-github-com-jaytaylor-html2text: Move to golang-web., (continued)
- 08/169: gnu: go-github-com-jaytaylor-html2text: Move to golang-web., guix-commits, 2024/09/26
- 09/169: gnu: Add go-html2text., guix-commits, 2024/09/26
- 10/169: gnu: go-github-com-operatorfoundation-monolith-go: Update to 1.0.10., guix-commits, 2024/09/26
- 12/169: gnu: Add go-github-com-deckarep-golang-set-v2., guix-commits, 2024/09/26
- 18/169: gnu: go-1.23: Update to 1.23.1., guix-commits, 2024/09/26
- 13/169: gnu: Remove go-github-com-kyoh86-xdg., guix-commits, 2024/09/26
- 22/169: import/go: Add diagnostics., guix-commits, 2024/09/26
- 19/169: gnu: go-1.20: Build with gccgo-12 on some systems., guix-commits, 2024/09/26
- 52/169: gnu: go-mvdan-cc-xurls: Rename variable., guix-commits, 2024/09/26
- 44/169: gnu: go-github-com-ipfs-go-ds-badger: Fix build., guix-commits, 2024/09/26
- 37/169: gnu: go-github-com-golang-groupcache: Fix build.,
guix-commits <=
- 35/169: gnu: go-github-com-golang-groupcache: Update to 0.0.0-20210331224755-41bb18bfe9da., guix-commits, 2024/09/26
- 41/169: gnu: go-github-com-prometheus-client-golang: Fix build., guix-commits, 2024/09/26
- 36/169: gnu: go-github-com-golang-groupcache: Fix indentation., guix-commits, 2024/09/26
- 46/169: gnu: kubo: Fix build., guix-commits, 2024/09/26
- 58/169: gnu: gopls: Update to 0.16.2., guix-commits, 2024/09/26
- 53/169: gnu: go-github-com-google-renameio: Move to golang-build., guix-commits, 2024/09/26
- 54/169: gnu: go-github-com-google-go-cmdtest: Move to golang-build., guix-commits, 2024/09/26
- 57/169: gnu: go-golang-org-x-vuln: Enable tests., guix-commits, 2024/09/26
- 56/169: gnu: go-golang-org-x-vuln: Move to golang-build., guix-commits, 2024/09/26
- 60/169: gnu: go-github-com-sergi-go-diff: Update to 1.3.1., guix-commits, 2024/09/26